mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
trie: fix leftover
This commit is contained in:
parent
fd7ed1c977
commit
dbc5c05fdb
1 changed files with 2 additions and 2 deletions
|
|
@ -23,6 +23,7 @@ import (
|
|||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -414,8 +415,7 @@ func (t *StackTrie) hash(st *stNode, path []byte) {
|
|||
}
|
||||
// Write the hash to the 'val'. We allocate a new val here to not mutate
|
||||
// input values.
|
||||
st.val = bPool.getWithSize(32)
|
||||
t.h.hashDataTo(st.val, blob)
|
||||
st.val = crypto.Keccak256(blob)
|
||||
|
||||
// Invoke the callback it's provided. Notably, the path and blob slices are
|
||||
// volatile, please deep-copy the slices in callback if the contents need
|
||||
|
|
|
|||
Loading…
Reference in a new issue