fix difflayer.go

This commit is contained in:
Tomás Andróil 2025-02-10 15:47:52 +01:00 committed by GitHub
parent f915d97084
commit 8e9c3a63c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,7 +113,7 @@ func (dl *diffLayer) account(hash common.Hash, depth int) ([]byte, error) {
dirtyStateReadMeter.Mark(int64(len(blob))) dirtyStateReadMeter.Mark(int64(len(blob)))
if len(blob) == 0 { if len(blob) == 0 {
stateAccountInexMeter.Mark(1) stateAccountIndexMeter.Mark(1)
} else { } else {
stateAccountExistMeter.Mark(1) stateAccountExistMeter.Mark(1)
} }
@ -139,7 +139,7 @@ func (dl *diffLayer) storage(accountHash, storageHash common.Hash, depth int) ([
dirtyStateReadMeter.Mark(int64(len(blob))) dirtyStateReadMeter.Mark(int64(len(blob)))
if len(blob) == 0 { if len(blob) == 0 {
stateStorageInexMeter.Mark(1) stateStorageIndexMeter.Mark(1)
} else { } else {
stateStorageExistMeter.Mark(1) stateStorageExistMeter.Mark(1)
} }