diff --git a/core/blockchain.go b/core/blockchain.go index 717b08e0b8..1309b5b9de 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1033,9 +1033,7 @@ func (bc *BlockChain) setHeadBeyondRoot(head uint64, time uint64, root common.Ha // Note, the located head state might not be physically present yet; in // the path-based scheme a recoverable state is materialized in a single - // shot once the rewind is finalized (see below). The stateless-head - // handling is therefore deferred until then, also avoiding a per-block - // recoverability check whose cost would grow as the rewind goes deeper. + // shot once the rewind is finalized. } // Rewind the snap block in a simpleton way to the target head if currentSnapBlock := bc.CurrentSnapBlock(); currentSnapBlock != nil && header.Number.Uint64() < currentSnapBlock.Number.Uint64() { diff --git a/core/blockchain_reader.go b/core/blockchain_reader.go index 01e42570a9..17c3b5122e 100644 --- a/core/blockchain_reader.go +++ b/core/blockchain_reader.go @@ -408,10 +408,7 @@ func (bc *BlockChain) stateRecoverable(root common.Hash) bool { } // StateRecoverable checks if the specified state is recoverable by applying -// state histories on top of the persistent state. It's the exported variant -// of stateRecoverable, and shares the same semantics: it's only meaningful for -// the path scheme, and returns false if the state is already available or the -// hash scheme is used. +// state histories on top of the persistent state. func (bc *BlockChain) StateRecoverable(root common.Hash) bool { return bc.stateRecoverable(root) }