mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
docs: a few more validation task docs (#6351)
This commit is contained in:
@@ -462,6 +462,7 @@ impl NodeConfig {
|
||||
let validator = TransactionValidationTaskExecutor::eth_builder(Arc::clone(&self.chain))
|
||||
.with_head_timestamp(head.timestamp)
|
||||
.kzg_settings(self.kzg_settings()?)
|
||||
// use an additional validation task so we can validate transactions in parallel
|
||||
.with_additional_tasks(1)
|
||||
.build_with_tasks(blockchain_db.clone(), executor.clone(), blob_store.clone());
|
||||
|
||||
|
||||
@@ -18,6 +18,10 @@ use tokio::{
|
||||
use tokio_stream::wrappers::ReceiverStream;
|
||||
|
||||
/// A service that performs validation jobs.
|
||||
///
|
||||
/// This listens for incoming validation jobs and executes them.
|
||||
///
|
||||
/// This should be spawned as a task: [ValidationTask::run]
|
||||
#[derive(Clone)]
|
||||
pub struct ValidationTask {
|
||||
#[allow(clippy::type_complexity)]
|
||||
|
||||
Reference in New Issue
Block a user