mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
Fix hasher (#1394)
This will fix a hasher bug that was introduced in a23701f2d4
This commit is contained in:
parent
b49047f4ee
commit
47cdc309f5
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue