Skip to content

Commit

Permalink
fix: a bug on conflict detect for self suicide operation
Browse files Browse the repository at this point in the history
  • Loading branch information
setunapo committed Jan 2, 2023
1 parent 1b5c363 commit d731d96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -3689,8 +3689,9 @@ func (s *ParallelStateDB) IsParallelReadsValid(isStage2 bool) bool {
// snapshot destructs check
for addr, destructRead := range slotDB.parallel.addrSnapDestructsReadsInSlot {
mainObj := mainDB.getStateObject(addr)
if mainObj == nil {
log.Debug("IsSlotDBReadsValid snapshot destructs read invalid, address should exist",
// if mainObj == nil, destructRead should not be true
if mainObj == nil && destructRead {
log.Warn("IsSlotDBReadsValid snapshot destructs read invalid, address should exist",
"addr", addr, "destruct", destructRead,
"SlotIndex", slotDB.parallel.SlotIndex,
"txIndex", slotDB.txIndex, "baseTxIndex", slotDB.parallel.baseTxIndex)
Expand Down

0 comments on commit d731d96

Please sign in to comment.