mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-16 16:10:40 +00:00
snapshot: add Unlock before return (#20948)
* Forget Unlock in snapshot * Remove Unlock before panic
This commit is contained in:
parent
79b68dd78d
commit
7599999dcd
1 changed files with 1 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ func (it *diffAccountIterator) Account() []byte {
|
|||
blob, ok := it.layer.accountData[it.curHash]
|
||||
if !ok {
|
||||
if _, ok := it.layer.destructSet[it.curHash]; ok {
|
||||
it.layer.lock.RUnlock()
|
||||
return nil
|
||||
}
|
||||
panic(fmt.Sprintf("iterator referenced non-existent account: %x", it.curHash))
|
||||
|
|
|
|||
Loading…
Reference in a new issue