Skip to content

Commit

Permalink
fix: deadlock hang on block 20926591
Browse files Browse the repository at this point in the history
it is obvious deadlock typo on corner case, when create object on destructed address
  • Loading branch information
setunapo committed Dec 7, 2022
1 parent 0fb89ae commit 1b5c363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -2558,7 +2558,7 @@ func (s *ParallelStateDB) createObject(addr common.Address) (newobj *StateObject
// with the new object on block commit.
s.snapDestructs[prev.address] = struct{}{}
}
s.snapParallelLock.Lock()
s.snapParallelLock.Unlock()

}
newobj = newObject(s, s.isParallel, addr, types.StateAccount{})
Expand Down

0 comments on commit 1b5c363

Please sign in to comment.