reth::providers

Trait BlockExecutionWriter

source
pub trait BlockExecutionWriter:
    BlockWriter
    + Send
    + Sync {
    // Required methods
    fn take_block_and_execution_range(
        &self,
        range: RangeInclusive<u64>,
    ) -> Result<Chain, ProviderError>;
    fn remove_block_and_execution_range(
        &self,
        range: RangeInclusive<u64>,
    ) -> Result<(), ProviderError>;
}
Expand description

BlockExecution Writer

Required Methods§

source

fn take_block_and_execution_range( &self, range: RangeInclusive<u64>, ) -> Result<Chain, ProviderError>

Take range of blocks and its execution result

source

fn remove_block_and_execution_range( &self, range: RangeInclusive<u64>, ) -> Result<(), ProviderError>

Remove range of blocks and its execution result

Implementations on Foreign Types§

source§

impl<'a, T> BlockExecutionWriter for &'a T

source§

impl<T> BlockExecutionWriter for Box<T>

source§

impl<T> BlockExecutionWriter for Arc<T>

Implementors§

source§

impl<TX, Spec> BlockExecutionWriter for DatabaseProvider<TX, Spec>
where TX: DbTxMut + DbTx + 'static, Spec: Send + Sync + EthereumHardforks + 'static,