fn add_pending(
        lc: &mut LinearChain,
        block_hash: BlockHash,
        era_id: EraId,
        local: bool,
    ) -> FinalitySignature {
        let sig = FinalitySignature::random_for_block(block_hash, era_id.value());
        let outcomes = lc.handle_finality_signature(Box::new(sig.clone()), !local);
        assert!(matches!(&*outcomes, [Outcome::LoadSignatures(_)]));
        sig
    }
// Creates a new finality signature for a given block, adds it as pending and returns.
Creates a new finality signature for a given block, adds it as pending and returns.
Creates a new finality signature for a given block adds it as pending and returns .
fn add_pending(
        lc: &mut LinearChain,
        block_hash: BlockHash,
        era_id: EraId,
        local: bool,
    ) -> FinalitySignature {
        let sig = FinalitySignature::random_for_block(block_hash, era_id.value());
        let outcomes = lc.handle_finality_signature(Box::new(sig.clone()), !local);
        assert!(matches!(&*outcomes, [Outcome::LoadSignatures(_)]));
        sig
    }
fn add_pending ( lc : & mut LinearChain , block_hash : BlockHash , era_id : EraId , local : bool , ) -> FinalitySignature { let sig = FinalitySignature :: random_for_block ( block_hash , era_id . value ( ) ) ; let outcomes = lc . handle_finality_signature ( Box :: new ( sig . clone ( ) ) , ! local ) ; assert ! ( matches ( outcomes [ Outcome LoadSignatures ( ) ] ) ) ; sig }
Creates a new finality signature for a given block, adds it as pending and returns.
Creates a new finality signature for a given block adds it as pending and returns .
lc
&mut LinearChain
block_hash
BlockHash
era_id
EraId
local
bool
lc
&mut LinearChain
block_hash
BlockHash
era_id
EraId
local
bool