mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +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
|
package blocktest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
|
||||||
"hash"
|
"hash"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"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.
|
// Update updates the hash state with the given key and value.
|
||||||
func (h *testHasher) Update(key, val []byte) error {
|
func (h *testHasher) Update(key, val []byte) error {
|
||||||
h.hasher.Write(bytes.Clone(key))
|
h.hasher.Write(key)
|
||||||
h.hasher.Write(bytes.Clone(val))
|
h.hasher.Write(val)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue