|
|
@ -72,8 +72,8 @@ public class BaseFeePendingTransactionsSorter extends AbstractPendingTransaction |
|
|
|
transactionInfo |
|
|
|
transactionInfo |
|
|
|
.getTransaction() |
|
|
|
.getTransaction() |
|
|
|
.getMaxPriorityFeePerGas() |
|
|
|
.getMaxPriorityFeePerGas() |
|
|
|
// safe to .get() here because only 1559 txs can be in the static range
|
|
|
|
// just in case we attempt to compare non-1559 transaction
|
|
|
|
.get() |
|
|
|
.orElse(Wei.ZERO) |
|
|
|
.getAsBigInteger() |
|
|
|
.getAsBigInteger() |
|
|
|
.longValue()) |
|
|
|
.longValue()) |
|
|
|
.thenComparing(TransactionInfo::getAddedToPoolAt) |
|
|
|
.thenComparing(TransactionInfo::getAddedToPoolAt) |
|
|
@ -104,7 +104,10 @@ public class BaseFeePendingTransactionsSorter extends AbstractPendingTransaction |
|
|
|
pendingTransactions.remove(transaction.getHash()); |
|
|
|
pendingTransactions.remove(transaction.getHash()); |
|
|
|
if (removedTransactionInfo != null) { |
|
|
|
if (removedTransactionInfo != null) { |
|
|
|
if (!prioritizedTransactionsDynamicRange.remove(removedTransactionInfo)) |
|
|
|
if (!prioritizedTransactionsDynamicRange.remove(removedTransactionInfo)) |
|
|
|
prioritizedTransactionsStaticRange.remove(removedTransactionInfo); |
|
|
|
removedTransactionInfo |
|
|
|
|
|
|
|
.getTransaction() |
|
|
|
|
|
|
|
.getMaxPriorityFeePerGas() |
|
|
|
|
|
|
|
.ifPresent(__ -> prioritizedTransactionsStaticRange.remove(removedTransactionInfo)); |
|
|
|
removeTransactionTrackedBySenderAndNonce(transaction); |
|
|
|
removeTransactionTrackedBySenderAndNonce(transaction); |
|
|
|
incrementTransactionRemovedCounter( |
|
|
|
incrementTransactionRemovedCounter( |
|
|
|
removedTransactionInfo.isReceivedFromLocalSource(), addedToBlock); |
|
|
|
removedTransactionInfo.isReceivedFromLocalSource(), addedToBlock); |
|
|
|