feat: add OpExecutionStrategy (#11761)

This commit is contained in:
Federico Gimenez
2024-10-16 12:13:46 +02:00
committed by GitHub
parent e454b2402b
commit f49a4ae185
6 changed files with 503 additions and 2 deletions

View File

@ -375,7 +375,7 @@ where
/// Batch execution strategy.
pub(crate) strategy: S,
/// Keeps track of batch execution receipts and requests.
batch_record: BlockBatchRecord,
pub(crate) batch_record: BlockBatchRecord,
_phantom: PhantomData<DB>,
}

View File

@ -11,7 +11,7 @@ use alloy_primitives::BlockNumber;
use parking_lot::Mutex;
use reth_execution_errors::BlockExecutionError;
use reth_execution_types::ExecutionOutcome;
use reth_primitives::{BlockWithSenders, Receipt};
use reth_primitives::{BlockWithSenders, Receipt, Receipts};
use reth_prune_types::PruneModes;
use reth_storage_errors::provider::ProviderError;
use revm::State;
@ -152,4 +152,9 @@ where
{
f(self.strategy.state_mut())
}
/// Accessor for batch executor receipts.
pub const fn receipts(&self) -> &Receipts {
self.batch_record.receipts()
}
}