Skip to content

Commit 45b888c

Browse files
fix
1 parent 64fbfba commit 45b888c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trie/stacktrie.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323

2424
"github.com/ethereum/go-ethereum/common"
2525
"github.com/ethereum/go-ethereum/core/types"
26+
"github.com/ethereum/go-ethereum/crypto"
2627
)
2728

2829
var (
@@ -414,8 +415,7 @@ func (t *StackTrie) hash(st *stNode, path []byte) {
414415
}
415416
// Write the hash to the 'val'. We allocate a new val here to not mutate
416417
// input values.
417-
st.val = bPool.getWithSize(32)
418-
t.h.hashDataTo(st.val, blob)
418+
st.val = crypto.Keccak256(blob)
419419

420420
// Invoke the callback it's provided. Notably, the path and blob slices are
421421
// volatile, please deep-copy the slices in callback if the contents need

0 commit comments

Comments
 (0)