mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: abstract EthTransactionValidator over ChainSpec (#14162)
This commit is contained in:
@ -136,16 +136,11 @@ impl<C: ChainSpecParser<ChainSpec = ChainSpec>> Command<C> {
|
||||
let blockchain_db = BlockchainProvider::new(provider_factory.clone())?;
|
||||
let blob_store = InMemoryBlobStore::default();
|
||||
|
||||
let validator =
|
||||
TransactionValidationTaskExecutor::eth_builder(provider_factory.chain_spec())
|
||||
.with_head_timestamp(best_block.timestamp)
|
||||
.kzg_settings(self.kzg_settings()?)
|
||||
.with_additional_tasks(1)
|
||||
.build_with_tasks(
|
||||
blockchain_db.clone(),
|
||||
ctx.task_executor.clone(),
|
||||
blob_store.clone(),
|
||||
);
|
||||
let validator = TransactionValidationTaskExecutor::eth_builder(blockchain_db.clone())
|
||||
.with_head_timestamp(best_block.timestamp)
|
||||
.kzg_settings(self.kzg_settings()?)
|
||||
.with_additional_tasks(1)
|
||||
.build_with_tasks(ctx.task_executor.clone(), blob_store.clone());
|
||||
|
||||
let transaction_pool = reth_transaction_pool::Pool::eth_pool(
|
||||
validator,
|
||||
|
||||
Reference in New Issue
Block a user