Skip to content

Commit

Permalink
Fix problem in transaction pool candidate logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mksong76 committed Dec 10, 2021
1 parent 4546278 commit ffc68ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/transactionpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ func (tp *TransactionPool) Candidate(wc state.WorldContext, maxBytes int, maxCou
}
continue
}
if v, err := tp.txdb.Get(tx.ID()); err != nil && v != nil {
if v, err := tp.txdb.Get(tx.ID()); err != nil {
continue
} else if v != nil {
e.err = errors.InvalidStateError.New("AlreadyProcessed")
dropped = append(dropped, e)
continue
Expand Down

0 comments on commit ffc68ac

Please sign in to comment.