mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: add OpExecutionStrategy (#11761)
This commit is contained in:
@ -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>,
|
||||
}
|
||||
|
||||
|
||||
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user