diff --git a/crates/anvil/src/eth/pool/transactions.rs b/crates/anvil/src/eth/pool/transactions.rs index 049b3f217469f..38e44e58ff7ab 100644 --- a/crates/anvil/src/eth/pool/transactions.rs +++ b/crates/anvil/src/eth/pool/transactions.rs @@ -276,7 +276,7 @@ impl PendingTransactions { .and_then(|hash| self.waiting_queue.get(hash)) { // check if underpriced - 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() { warn!(target: "txpool", "pending replacement transaction underpriced [{:?}]", tx.transaction.hash()); return Err(PoolError::ReplacementUnderpriced(tx.transaction.hash())); }