trie: revert back lock before reset

This commit is contained in:
Manav Darji 2025-03-27 18:05:41 +05:30
parent 91532b6a4e
commit 98d09399f7
No known key found for this signature in database
GPG key ID: A426F0124435F36E

View file

@ -759,7 +759,10 @@ func (t *Trie) Reset() {
t.owner = common.Hash{} t.owner = common.Hash{}
t.unhashed = 0 t.unhashed = 0
t.uncommitted = 0 t.uncommitted = 0
t.tracerMutex.Lock()
t.tracer.reset() t.tracer.reset()
t.committed = false
t.tracerMutex.Unlock() t.tracerMutex.Unlock()
t.committed = false
} }