Skip to content

Commit 338303c

Browse files
committed
core/state: fix disk hit rate
1 parent 29dc4e7 commit 338303c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/state/reader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,9 @@ func (r *readerWithCacheStats) Storage(addr common.Address, slot common.Hash) (c
621621
// If the slot was read from the underlying storage, count
622622
// the presence statistics.
623623
if value == (common.Hash{}) {
624-
r.accountDiskMiss.Add(1)
624+
r.storageDiskMiss.Add(1)
625625
} else {
626-
r.accountDiskHit.Add(1)
626+
r.storageDiskHit.Add(1)
627627
}
628628
}
629629
return value, nil

0 commit comments

Comments
 (0)