Skip to content

Commit

Permalink
Don't put NONCE_TOO_LOW transactions into the invalid nonce cache
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
  • Loading branch information
matthew1001 committed Oct 20, 2023
1 parent 9d9fe8c commit 1d32cb8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,12 @@ private ValidationResult<TransactionInvalidReason> addTransaction(
.log();
metrics.incrementRejected(
isLocal, hasPriority, validationResult.result.getInvalidReason(), "txpool");
if (!isLocal) {
if (!isLocal
&& !validationResult
.result
.getInvalidReason()
.name()
.equals(TransactionInvalidReason.NONCE_TOO_LOW.name())) {
pendingTransactions.signalInvalidAndRemoveDependentTransactions(transaction);
}
}
Expand Down

0 comments on commit 1d32cb8

Please sign in to comment.