diff --git a/core/blockchain.go b/core/blockchain.go index baf2f9f82f..49077d5241 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -672,8 +672,8 @@ func (bc *BlockChain) setHeadBeyondRoot(head uint64, time uint64, root common.Ha beyondRoot := (root == common.Hash{}) // Flag whether we're beyond the requested root (no root, always true) for { - // If a root threshold was requested but not yet crossed, check - if root != (common.Hash{}) && !beyondRoot && newHeadBlock.Root() == root { + // Check if the root threshold is crossed + if !beyondRoot && newHeadBlock.Root() == root { beyondRoot, rootNumber = true, newHeadBlock.NumberU64() } if !bc.HasState(newHeadBlock.Root()) && !bc.stateRecoverable(newHeadBlock.Root()) {