trie: don't reset tracer at the end of Commit

This commit is contained in:
Jared Wasinger 2024-06-18 16:51:02 -07:00
parent 7cf6a63687
commit 55085ed3f9

View file

@ -609,7 +609,6 @@ func (t *Trie) Hash() common.Hash {
// Once the trie is committed, it's not usable anymore. A new trie must // Once the trie is committed, it's not usable anymore. A new trie must
// be created with new root and updated trie database for following usage // be created with new root and updated trie database for following usage
func (t *Trie) Commit(collectLeaf bool) (common.Hash, *trienode.NodeSet) { func (t *Trie) Commit(collectLeaf bool) (common.Hash, *trienode.NodeSet) {
defer t.tracer.reset()
defer func() { defer func() {
t.committed = true t.committed = true
}() }()