Skip to content

Commit

Permalink
trie: don't reset tracer at the end of Commit (#30024)
Browse files Browse the repository at this point in the history
* trie: don't reset tracer at the end of Commit

* Update trie.go

---------

Co-authored-by: rjl493456442 <[email protected]>
  • Loading branch information
jwasinger and rjl493456442 authored Jun 19, 2024
1 parent 67a862d commit 0e3a0a6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions trie/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ type Trie struct {
reader *trieReader

// tracer is the tool to track the trie changes.
// It will be reset after each commit operation.
tracer *tracer
}

Expand Down Expand Up @@ -609,7 +608,6 @@ func (t *Trie) Hash() common.Hash {
// 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
func (t *Trie) Commit(collectLeaf bool) (common.Hash, *trienode.NodeSet) {
defer t.tracer.reset()
defer func() {
t.committed = true
}()
Expand Down

0 comments on commit 0e3a0a6

Please sign in to comment.