diff --git a/crates/ethereum/node/src/node.rs b/crates/ethereum/node/src/node.rs index 1b09a5c6c6..46f1da57b8 100644 --- a/crates/ethereum/node/src/node.rs +++ b/crates/ethereum/node/src/node.rs @@ -373,7 +373,10 @@ where pool, chain_events, ctx.task_executor().clone(), - Default::default(), + reth_transaction_pool::maintain::MaintainPoolConfig { + max_tx_lifetime: transaction_pool.config().max_queued_lifetime, + ..Default::default() + }, ), ); debug!(target: "reth::cli", "Spawned txpool maintenance task"); diff --git a/crates/optimism/node/src/node.rs b/crates/optimism/node/src/node.rs index 25a3fc6a23..28fba470d5 100644 --- a/crates/optimism/node/src/node.rs +++ b/crates/optimism/node/src/node.rs @@ -572,7 +572,10 @@ where pool.clone(), chain_events, ctx.task_executor().clone(), - Default::default(), + reth_transaction_pool::maintain::MaintainPoolConfig { + max_tx_lifetime: pool.config().max_queued_lifetime, + ..Default::default() + }, ), ); debug!(target: "reth::cli", "Spawned txpool maintenance task"); diff --git a/examples/custom-node-components/src/main.rs b/examples/custom-node-components/src/main.rs index 13b5d7300a..29732db0d9 100644 --- a/examples/custom-node-components/src/main.rs +++ b/examples/custom-node-components/src/main.rs @@ -93,7 +93,10 @@ where pool, chain_events, ctx.task_executor().clone(), - Default::default(), + reth_transaction_pool::maintain::MaintainPoolConfig { + max_tx_lifetime: transaction_pool.config().max_queued_lifetime, + ..Default::default() + }, ), ); debug!(target: "reth::cli", "Spawned txpool maintenance task");