Update database.go

This commit is contained in:
Christina 2025-01-27 16:24:00 +02:00 committed by GitHub
parent f0e8a3e9c8
commit 4d1c7d54f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -471,8 +471,8 @@ func (db *Database) Recoverable(root common.Hash) bool {
if id == nil { if id == nil {
return false return false
} }
// Recoverable state must below the disk layer. The recoverable // Recoverable state must be below the disk layer. The recoverable
// state only refers the state that is currently not available, // state only refers to the state that is currently not available,
// but can be restored by applying state history. // but can be restored by applying state history.
dl := db.tree.bottom() dl := db.tree.bottom()
if *id >= dl.stateID() { if *id >= dl.stateID() {