reth::providers

Trait BlockExecutionWriter

pub trait BlockExecutionWriter:
    NodePrimitivesProvider
    + BlockWriter
    + Send
    + Sync
where Self::Primitives: NodePrimitives<Block = Self::Block>,
{ // Required methods fn take_block_and_execution_above( &self, block: u64, remove_from: StorageLocation, ) -> Result<Chain<Self::Primitives>, ProviderError>; fn remove_block_and_execution_above( &self, block: u64, remove_from: StorageLocation, ) -> Result<(), ProviderError>; }
Expand description

BlockExecution Writer

Required Methods§

fn take_block_and_execution_above( &self, block: u64, remove_from: StorageLocation, ) -> Result<Chain<Self::Primitives>, ProviderError>

Take all of the blocks above the provided number and their execution result

The passed block number will stay in the database.

Accepts StorageLocation specifying from where should transactions and receipts be removed.

fn remove_block_and_execution_above( &self, block: u64, remove_from: StorageLocation, ) -> Result<(), ProviderError>

Remove all of the blocks above the provided number and their execution result

The passed block number will stay in the database.

Accepts StorageLocation specifying from where should transactions and receipts be removed.

Implementations on Foreign Types§

§

impl<T> BlockExecutionWriter for &T

Implementors§

§

impl<TX, N> BlockExecutionWriter for DatabaseProvider<TX, N>
where TX: DbTxMut + DbTx + 'static, N: NodeTypesForProvider + 'static,