Update test_hash.go

This commit is contained in:
alex017 2026-01-28 22:08:58 +01:00 committed by GitHub
parent 424bc22ab8
commit 7081f37a43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}