Skip to content

Commit

Permalink
Fix: dead lock issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny2022da authored and welkin22 committed Oct 22, 2024
1 parent c2adba6 commit 57a249f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -2604,7 +2604,6 @@ func (s *StateDB) MergeSlotDB(slotDb *ParallelStateDB, slotReceipt *types.Receip
// fixme: should not delete, would cause unconfirmed DB incorrect?
// delete(slotDb.parallel.dirtiedStateObjectsInSlot, addr) // transfer ownership, fixme: shared read?
if dirtyObj.deleted {
s.accountStorageParallelLock.Lock()
// remove the addr from snapAccounts&snapStorage only when object is deleted.
// "deleted" is not equal to "snapDestructs", since createObject() will add an addr for
// snapDestructs to destroy previous object, while it will keep the addr in snapAccounts & snapAccounts
Expand Down

0 comments on commit 57a249f

Please sign in to comment.