mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
Update test_hash.go
This commit is contained in:
parent
424bc22ab8
commit
7081f37a43
1 changed files with 2 additions and 3 deletions
|
|
@ -23,7 +23,6 @@
|
|||
package blocktest
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"hash"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
|
|
@ -49,8 +48,8 @@ func (h *testHasher) Reset() {
|
|||
|
||||
// Update updates the hash state with the given key and value.
|
||||
func (h *testHasher) Update(key, val []byte) error {
|
||||
h.hasher.Write(bytes.Clone(key))
|
||||
h.hasher.Write(bytes.Clone(val))
|
||||
h.hasher.Write(key)
|
||||
h.hasher.Write(val)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue