We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64fbfba commit 45b888cCopy full SHA for 45b888c
trie/stacktrie.go
@@ -23,6 +23,7 @@ import (
23
24
"github.com/ethereum/go-ethereum/common"
25
"github.com/ethereum/go-ethereum/core/types"
26
+ "github.com/ethereum/go-ethereum/crypto"
27
)
28
29
var (
@@ -414,8 +415,7 @@ func (t *StackTrie) hash(st *stNode, path []byte) {
414
415
}
416
// Write the hash to the 'val'. We allocate a new val here to not mutate
417
// input values.
- st.val = bPool.getWithSize(32)
418
- t.h.hashDataTo(st.val, blob)
+ st.val = crypto.Keccak256(blob)
419
420
// Invoke the callback it's provided. Notably, the path and blob slices are
421
// volatile, please deep-copy the slices in callback if the contents need
0 commit comments