diff --git a/core/state/pruner/pruner.go b/core/state/pruner/pruner.go index 2f7d8851c4..83c56d5785 100644 --- a/core/state/pruner/pruner.go +++ b/core/state/pruner/pruner.go @@ -378,11 +378,8 @@ func (p *BlockPruner) backUpOldDb(name string, cache, handles int, namespace str // If the items in freezer is less than the block amount that we want to reserve, it is not enough, should stop. if itemsOfAncient < p.BlockAmountReserved { - log.Error("the number of old blocks is not enough to reserve", "ancient items", itemsOfAncient, "the amount specified", p.BlockAmountReserved) + log.Error("the number of old blocks is not enough to reserve,", "ancient items", itemsOfAncient, "the amount specified", p.BlockAmountReserved) return errors.New("the number of old blocks is not enough to reserve") - } else if itemsOfAncient == p.BlockAmountReserved { - log.Error("the number of old blocks is the same to be reserved", "ancient items", itemsOfAncient, "the amount specified", p.BlockAmountReserved) - return errors.New("the number of old blocks is the same to be reserved") } var oldOffSet uint64 diff --git a/tests/testdata b/tests/testdata index c600d7795a..092a8834dc 160000 --- a/tests/testdata +++ b/tests/testdata @@ -1 +1 @@ -Subproject commit c600d7795aa2ea57a9c856fc79f72fc05b542124 +Subproject commit 092a8834dc445e683103689d6f0e75a5d380a190