Fix hasher (#1394)

This will fix a hasher bug that was introduced in a23701f2d4
This commit is contained in:
Jerry 2024-12-24 09:03:55 -08:00 committed by GitHub
parent b49047f4ee
commit 47cdc309f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {