verify_block

Function verify_block 

Source
async fn verify_block<TContext: Pacer>(
    context: TContext,
    epoch: Epoch,
    epoch_length: u64,
    engine: ConsensusEngineHandle<TempoPayloadTypes>,
    block: &Block,
    parent_digest: Digest,
    scheme_provider: &SchemeProvider,
) -> Result<bool>
Expand description

Verifies block given its parent against the execution layer.

Returns whether the block is valid or not. Returns an error if validation was not possible, for example if communication with the execution layer failed.

Reason the reason for why a block was not valid is communicated as a tracing event.