We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 985e26e commit 7e226c1Copy full SHA for 7e226c1
1 file changed
crates/anvil/src/eth/pool/transactions.rs
@@ -276,7 +276,7 @@ impl<T: Transaction> PendingTransactions<T> {
276
.and_then(|hash| self.waiting_queue.get(hash))
277
{
278
// check if underpriced
279
- if tx.transaction.max_fee_per_gas() < replace.transaction.max_fee_per_gas() {
+ if tx.transaction.max_fee_per_gas() <= replace.transaction.max_fee_per_gas() {
280
warn!(target: "txpool", "pending replacement transaction underpriced [{:?}]", tx.transaction.hash());
281
return Err(PoolError::ReplacementUnderpriced(tx.transaction.hash()));
282
}
0 commit comments