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§
sourcefn last_finalized_block_number(&self) -> Result<Option<u64>, ProviderError>
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
.