Type Alias sc_client_api::client::ForkBlocks

source ·
pub type ForkBlocks<Block> = Option<Vec<(NumberFor<Block>, <Block as BlockT>::Hash)>>;
Expand description

Expected hashes of blocks at given heights.

This may be used as chain spec extension to set trusted checkpoints, i.e. the client will refuse to import a block with a different hash at the given height.

Aliased Type§

enum ForkBlocks<Block> {
    None,
    Some(Vec<(<<Block as Block>::Header as Header>::Number, <Block as Block>::Hash)>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Vec<(<<Block as Block>::Header as Header>::Number, <Block as Block>::Hash)>)

Some value of type T.