Function tc_finality_grandpa::prove_warp_sync[][src]

pub fn prove_warp_sync<Block: BlockT, B: BlockchainBackend<Block>>(
    blockchain: &B,
    begin: Block::Hash,
    max_fragment_limit: Option<usize>,
    cache: Option<&mut WarpSyncFragmentCache<Block::Header>>
) -> Result<Vec<u8>>

Prepare authority proof for the best possible block starting at a given trusted block.

Started block should be in range of bonding duration. We only return proof for finalized blocks (with justification).

It is assumed that the caller already have a proof-of-finality for the block ‘begin’.