Trait reth_provider::BlockExecutionWriter

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

BlockExecution Writer

Required Methods§

source

fn take_block_and_execution_range( &self, range: RangeInclusive<BlockNumber>, ) -> ProviderResult<Chain>

Take range of blocks and its execution result

source

fn remove_block_and_execution_range( &self, range: RangeInclusive<BlockNumber>, ) -> ProviderResult<()>

Remove range of blocks and its execution result

Implementations on Foreign Types§

source§

impl<'a, T: 'a + BlockExecutionWriter + ?Sized> BlockExecutionWriter for &'a T

source§

impl<T: BlockExecutionWriter + ?Sized> BlockExecutionWriter for Box<T>
where Box<T>: BlockWriter + Send + Sync,

source§

impl<T: BlockExecutionWriter + ?Sized> BlockExecutionWriter for Arc<T>
where Arc<T>: BlockWriter + Send + Sync,

Implementors§

source§

impl<TX: DbTxMut + DbTx + 'static> BlockExecutionWriter for DatabaseProvider<TX>