Skip to content

Commit 7e226c1

Browse files
authored
fix(anvil): use <= for pending pool replacement underprice check (foundry-rs#14254)
1 parent 985e26e commit 7e226c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/anvil/src/eth/pool/transactions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl<T: Transaction> PendingTransactions<T> {
276276
.and_then(|hash| self.waiting_queue.get(hash))
277277
{
278278
// check if underpriced
279-
if tx.transaction.max_fee_per_gas() < replace.transaction.max_fee_per_gas() {
279+
if tx.transaction.max_fee_per_gas() <= replace.transaction.max_fee_per_gas() {
280280
warn!(target: "txpool", "pending replacement transaction underpriced [{:?}]", tx.transaction.hash());
281281
return Err(PoolError::ReplacementUnderpriced(tx.transaction.hash()));
282282
}

0 commit comments

Comments
 (0)