We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5862611 commit 1726684Copy full SHA for 1726684
1 file changed
core/blockchain.go
@@ -588,7 +588,7 @@ func (bc *BlockChain) initializeHistoryPruning(latest uint64) error {
588
if predefinedPoint == nil {
589
log.Error("Chain history pruning is not supported for this network", "genesis", bc.genesisBlock.Hash())
590
return fmt.Errorf("history pruning requested for unknown network")
591
- } else if freezerTail != predefinedPoint.BlockNumber {
+ } else if freezerTail > 0 && freezerTail != predefinedPoint.BlockNumber {
592
log.Error("Chain history database is pruned to unknown block", "tail", freezerTail)
593
return fmt.Errorf("unexpected database tail")
594
}
0 commit comments