From 90badc88a08b2edd9a84c0e76850477b39e33427 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Thu, 16 Oct 2025 11:19:05 +0800 Subject: [PATCH] core/state: fix disk hit rate --- core/state/reader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/state/reader.go b/core/state/reader.go index 79c5bffc48..be14885d4e 100644 --- a/core/state/reader.go +++ b/core/state/reader.go @@ -621,9 +621,9 @@ func (r *readerWithCacheStats) Storage(addr common.Address, slot common.Hash) (c // If the slot was read from the underlying storage, count // the presence statistics. if value == (common.Hash{}) { - r.accountDiskMiss.Add(1) + r.storageDiskMiss.Add(1) } else { - r.accountDiskHit.Add(1) + r.storageDiskHit.Add(1) } } return value, nil