From 95804ff52a8dc3c1d25de0247bf2aee76fddd057 Mon Sep 17 00:00:00 2001 From: Jerry Date: Mon, 23 Dec 2024 14:23:35 -0800 Subject: [PATCH] Fix hasher 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 2ea0662ce0..ec5b9a592e 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -988,7 +988,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 {