Skip to main content

find_last_finalized_marker

Function find_last_finalized_marker 

Source
pub async fn find_last_finalized_marker<TContext, P>(
    context: &TContext,
    execution_provider: &P,
    max_depth: u64,
) -> Result<Option<(u64, Finalization<Scheme<PublicKey, MinSig>, Digest>)>>
where TContext: Clock + Metrics + Spawner + Storage + BufferPooler + Clone + Send + 'static, P: BlockIdReader + BlockReader<Block = Block> + Send + Sync + ?Sized,
Expand description

Finds the latest finalization certificate backed by finalized execution storage.

Searches backwards from the execution provider’s finalized tip. At most max_depth blocks behind that starting height are inspected.

Returns None if no persisted finalization certificate has a matching finalized execution block.