fix disklayer.go

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

View file

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