From f78f04a6048a4a50f4e5161b1609689abfd12550 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Wed, 1 Jul 2026 10:22:56 +0800 Subject: [PATCH] core: fix comments --- core/blockchain.go | 4 +--- core/blockchain_reader.go | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) 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) }