reth_storage_api

Trait ChainStateBlockWriter

Source
pub trait ChainStateBlockWriter: Send + Sync {
    // Required methods
    fn save_finalized_block_number(
        &self,
        block_number: BlockNumber,
    ) -> ProviderResult<()>;
    fn save_safe_block_number(
        &self,
        block_number: BlockNumber,
    ) -> ProviderResult<()>;
}
Expand description

Functionality to write the last known chain blocks to the database.

Required Methods§

Source

fn save_finalized_block_number( &self, block_number: BlockNumber, ) -> ProviderResult<()>

Saves the given finalized block number in the DB.

Source

fn save_safe_block_number( &self, block_number: BlockNumber, ) -> ProviderResult<()>

Saves the given safe block number in the DB.

Implementors§