Trait reth_provider::FinalizedBlockReader
source · pub trait FinalizedBlockReader: Send + Sync {
// Required method
fn last_finalized_block_number(&self) -> ProviderResult<Option<BlockNumber>>;
}
Expand description
Functionality to read the last known finalized block from the database.
Required Methods§
sourcefn last_finalized_block_number(&self) -> ProviderResult<Option<BlockNumber>>
fn last_finalized_block_number(&self) -> ProviderResult<Option<BlockNumber>>
Returns the last finalized block number.
If no finalized block has been written yet, this returns None
.