docs: a few more validation task docs (#6351)

This commit is contained in:
Matthias Seitz
2024-02-02 17:36:15 +01:00
committed by GitHub
parent 855d5b0a95
commit 648a084ba8
2 changed files with 5 additions and 0 deletions

View File

@@ -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());

View File

@@ -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)]