mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
trie: add back stacktrie-resetting of writeFn on Reset
This commit is contained in:
parent
a2fb3f3191
commit
687e54a5d2
1 changed files with 1 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ func (t *StackTrie) MustUpdate(key, value []byte) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *StackTrie) Reset() {
|
func (t *StackTrie) Reset() {
|
||||||
|
t.writeFn = nil
|
||||||
t.root = stPool.Get().(*stNode)
|
t.root = stPool.Get().(*stNode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue