Function sanity_check_alt_block

Source
pub async fn sanity_check_alt_block<C>(
    block: Block,
    txs: HashMap<[u8; 32], TransactionVerificationData>,
    context_svc: C,
) -> Result<AltBlockInformation, ExtendedConsensusError>
where C: Service<BlockChainContextRequest, Response = BlockChainContextResponse, Error = BoxError> + Send + 'static, C::Future: Send + 'static,
Expand description

This function sanity checks an alt-block.

Returns AltBlockInformation, which contains the cumulative difficulty of the alt chain.

This function only checks the block’s proof-of-work and its weight.