reth::providers

Trait FinalizedBlockReader

source
pub trait FinalizedBlockReader: Send + Sync {
    // Required method
    fn last_finalized_block_number(&self) -> Result<Option<u64>, ProviderError>;
}
Expand description

Functionality to read the last known finalized block from the database.

Required Methods§

source

fn last_finalized_block_number(&self) -> Result<Option<u64>, ProviderError>

Returns the last finalized block number.

If no finalized block has been written yet, this returns None.

Implementors§

source§

impl<TX, Spec> FinalizedBlockReader for DatabaseProvider<TX, Spec>
where TX: DbTx, Spec: Send + Sync,