From 57a249fe90c847e793e62d5ef1c6fbb2a8949341 Mon Sep 17 00:00:00 2001 From: Sunny Date: Thu, 18 Jul 2024 17:10:51 +0800 Subject: [PATCH] Fix: dead lock issue --- core/state/statedb.go | 1 - 1 file changed, 1 deletion(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 09631f7047..741bbe54b8 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -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