mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(txpool): local transaction configuration (#8323)
This commit is contained in:
@ -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();
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user