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

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> BlockExecutionWriter for &'a T

Source§

impl<T> BlockExecutionWriter for Box<T>

Source§

impl<T> BlockExecutionWriter for Arc<T>

Implementors§

Source§

impl<TX, N> BlockExecutionWriter for DatabaseProvider<TX, N>
where TX: DbTxMut + DbTx + 'static, N: NodeTypes + 'static, <N as NodeTypes>::ChainSpec: EthereumHardforks,