Skip to content

Commit

Permalink
keccak read arg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed Dec 18, 2020
1 parent 69fac3c commit 60c21e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctxc/downloader/statesync.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ func (s *stateSync) processNodeData(blob []byte) (common.Hash, error) {
res := trie.SyncResult{Data: blob}
s.keccak.Reset()
s.keccak.Write(blob)
s.keccak.Read(res.Hash[:0])
s.keccak.Read(res.Hash[:])
err := s.sched.Process(res)
return res.Hash, err
}
Expand Down

0 comments on commit 60c21e8

Please sign in to comment.