mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-03 10:03:47 +00:00
trie: fix flaw in stacktrie pool reuse (#21699)
This commit is contained in:
parent
94d1f5888a
commit
348c3bc47d
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ func (st *StackTrie) Update(key, value []byte) {
|
|||
func (st *StackTrie) Reset() {
|
||||
st.db = nil
|
||||
st.key = st.key[:0]
|
||||
st.val = st.val[:0]
|
||||
st.val = nil
|
||||
for i := range st.children {
|
||||
st.children[i] = nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue