fix(txpool): local transaction configuration (#8323)

This commit is contained in:
Roman Krasiuk
2024-05-20 16:21:57 +02:00
committed by GitHub
parent de79f2657c
commit 383693762b
2 changed files with 4 additions and 2 deletions

View File

@ -109,10 +109,12 @@ where
async fn build_pool(self, ctx: &BuilderContext<Node>) -> eyre::Result<Self::Pool> {
let data_dir = ctx.data_dir();
let pool_config = ctx.pool_config();
let blob_store = DiskFileBlobStore::open(data_dir.blobstore(), Default::default())?;
let validator = TransactionValidationTaskExecutor::eth_builder(ctx.chain_spec())
.with_head_timestamp(ctx.head().timestamp)
.kzg_settings(ctx.kzg_settings()?)
.with_local_transactions_config(pool_config.local_transactions_config.clone())
.with_additional_tasks(1)
.build_with_tasks(
ctx.provider().clone(),
@ -121,7 +123,7 @@ where
);
let transaction_pool =
reth_transaction_pool::Pool::eth_pool(validator, blob_store, ctx.pool_config());
reth_transaction_pool::Pool::eth_pool(validator, blob_store, pool_config);
info!(target: "reth::cli", "Transaction pool initialized");
let transactions_path = data_dir.txpool_transactions();

View File

@ -479,7 +479,7 @@ impl EthTransactionValidatorBuilder {
}
/// Whether to allow exemptions for local transaction exemptions.
pub fn set_local_transactions_config(
pub fn with_local_transactions_config(
mut self,
local_transactions_config: LocalTransactionConfig,
) -> Self {