File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -2820,7 +2820,7 @@ func (bc *BlockChain) StateSizer() *state.SizeTracker {
28202820 return bc .stateSizer
28212821}
28222822
2823- // FirstStateBlock returns the first available state block number that is stored in the database .
2824- func (bc * BlockChain ) FirstStateBlock () (uint64 , error ) {
2825- return bc .triedb .FirstStateBlock ()
2823+ // FrezzerTailBlock returns the block number of the oldest state in the freezer .
2824+ func (bc * BlockChain ) FreezerTailBlock () (uint64 , error ) {
2825+ return bc .triedb .FreezerTailBlock ()
28262826}
Original file line number Diff line number Diff line change @@ -385,12 +385,11 @@ func (db *Database) SnapshotCompleted() bool {
385385 return pdb .SnapshotCompleted ()
386386}
387387
388- // FirstStateBlock returns the first available state block number that is stored in the database .
389- func (db * Database ) FirstStateBlock () (uint64 , error ) {
388+ // FrezzerTailBlock returns the block number of the oldest state in the freezer .
389+ func (db * Database ) FreezerTailBlock () (uint64 , error ) {
390390 pdb , ok := db .backend .(* pathdb.Database )
391391 if ! ok {
392- // Ignore in hash scheme
393392 return 0 , nil
394393 }
395- return pdb .FirstStateBlock ()
394+ return pdb .FrezzerTailBlock ()
396395}
Original file line number Diff line number Diff line change @@ -693,8 +693,8 @@ func (db *Database) SnapshotCompleted() bool {
693693 return db .tree .bottom ().genComplete ()
694694}
695695
696- // FirstStateBlock returns the block number of the oldest state in the freezer.
697- func (db * Database ) FirstStateBlock () (uint64 , error ) {
696+ // FrezzerTailBlock returns the block number of the oldest state in the freezer.
697+ func (db * Database ) FrezzerTailBlock () (uint64 , error ) {
698698 freezer := db .stateFreezer
699699 if freezer == nil {
700700 return 0 , errors .New ("freezer is not available" )
You can’t perform that action at this time.
0 commit comments