Skip to content

Commit

Permalink
fix: false report of conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny2022da committed Aug 13, 2024
1 parent c4cd75a commit 21f3123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/state/parallel_statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ func (slotDB *ParallelStateDB) IsParallelReadsValid(isStage2 bool) bool {
if isStage2 { // update slotDB's unconfirmed DB list and try
if slotDB.parallel.useDAG {
// DAG never reads from unconfirmedDB, skip check.
return false
return true
}
if nonceUnconfirm, ok := slotDB.getNonceFromUnconfirmedDB(addr); ok {
if nonceSlot != nonceUnconfirm {
Expand Down Expand Up @@ -1348,7 +1348,7 @@ func (slotDB *ParallelStateDB) IsParallelReadsValid(isStage2 bool) bool {
if isStage2 { // update slotDB's unconfirmed DB list and try
if slotDB.parallel.useDAG {
// DAG never reads from unconfirmedDB, skip check.
return false
return true
}
if balanceUnconfirm := slotDB.getBalanceFromUnconfirmedDB(addr); balanceUnconfirm != nil {
if balanceSlot.Cmp(balanceUnconfirm) == 0 {
Expand Down

0 comments on commit 21f3123

Please sign in to comment.