Skip to content

Commit

Permalink
Fix hasher (#1394)
Browse files Browse the repository at this point in the history
This will fix a hasher bug that was introduced in a23701f
  • Loading branch information
cffls authored Dec 24, 2024
1 parent b49047f commit 47cdc30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 47cdc30

Please sign in to comment.