From 47cdc309f5419a391e0caeb38e47019e2d0f5645 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 24 Dec 2024 09:03:55 -0800 Subject: [PATCH] Fix hasher (#1394) This will fix a hasher bug that was introduced in https://github.com/maticnetwork/bor/commit/a23701f2d4b824ff30885d2061f6f71a11710dfc --- core/state/statedb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 08dbc44538..f1cf27795d 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -994,7 +994,7 @@ func (s *StateDB) getStateObject(addr common.Address) *stateObject { var data *types.StateAccount if s.snap != nil { start := time.Now() - acc, err := s.snap.Account(crypto.HashData(s.hasher, addr.Bytes())) + acc, err := s.snap.Account(crypto.HashData(crypto.NewKeccakState(), addr.Bytes())) s.SnapshotAccountReads += time.Since(start) if err == nil { if acc == nil {