core/state: fix typo in comment (#23665)

This commit is contained in:
hsyodyssey 2021-10-04 18:16:50 +08:00 committed by GitHub
parent 01fdca53e1
commit 12f971fb2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -228,7 +228,7 @@ func (s *stateObject) GetCommittedState(db Database, key common.Hash) common.Has
} }
enc, err = s.db.snap.Storage(s.addrHash, crypto.Keccak256Hash(key.Bytes())) enc, err = s.db.snap.Storage(s.addrHash, crypto.Keccak256Hash(key.Bytes()))
} }
// If snapshot unavailable or reading from it failed, load from the database // If the snapshot is unavailable or reading from it fails, load from the database.
if s.db.snap == nil || err != nil { if s.db.snap == nil || err != nil {
if meter != nil { if meter != nil {
// If we already spent time checking the snapshot, account for it // If we already spent time checking the snapshot, account for it