Skip to content

Commit 60a3902

Browse files
committed
doc
Signed-off-by: Delweng <[email protected]>
1 parent ae7f7d8 commit 60a3902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

triedb/pathdb/database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ func (db *Database) StorageIterator(root common.Hash, account common.Hash, seek
749749
return newFastStorageIterator(db, root, account, seek)
750750
}
751751

752-
// FirstStateBlock returns the block number of the oldest state snapshot in the freezer or disk layer.
752+
// FirstStateBlock returns the block number of the oldest state in the freezer.
753753
func (db *Database) FirstStateBlock() (uint64, error) {
754754
if db.freezer == nil {
755755
return 0, errors.New("freezer is not available")
@@ -760,7 +760,7 @@ func (db *Database) FirstStateBlock() (uint64, error) {
760760
return 0, err
761761
}
762762

763-
// No state has been persistent
763+
// No state has been persistent, return the genesis block number.
764764
if tailID == 0 {
765765
return 0, nil
766766
}

0 commit comments

Comments
 (0)