Skip to content

Commit 47cdc30

Browse files
authored
Fix hasher (#1394)
This will fix a hasher bug that was introduced in a23701f
1 parent b49047f commit 47cdc30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state/statedb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ func (s *StateDB) getStateObject(addr common.Address) *stateObject {
994994
var data *types.StateAccount
995995
if s.snap != nil {
996996
start := time.Now()
997-
acc, err := s.snap.Account(crypto.HashData(s.hasher, addr.Bytes()))
997+
acc, err := s.snap.Account(crypto.HashData(crypto.NewKeccakState(), addr.Bytes()))
998998
s.SnapshotAccountReads += time.Since(start)
999999
if err == nil {
10001000
if acc == nil {

0 commit comments

Comments
 (0)