mirror of https://github.com/status-im/op-geth.git
snapshot: add Unlock before return (#20948)
* Forget Unlock in snapshot * Remove Unlock before panic
This commit is contained in:
parent
79b68dd78d
commit
7599999dcd
|
@ -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 New Issue