reth_provider

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

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, N: NodeTypes<ChainSpec: EthereumHardforks> + 'static> BlockExecutionWriter for DatabaseProvider<TX, N>