Trait sc_client_api::backend::ProvideChtRoots[][src]

pub trait ProvideChtRoots<Block: BlockT> {
    fn header_cht_root(
        &self,
        cht_size: NumberFor<Block>,
        block: NumberFor<Block>
    ) -> Result<Option<Block::Hash>>;
fn changes_trie_cht_root(
        &self,
        cht_size: NumberFor<Block>,
        block: NumberFor<Block>
    ) -> Result<Option<Block::Hash>>; }

Provide CHT roots. These are stored on a light client and generated dynamically on a full client.

Required methods

fn header_cht_root(
    &self,
    cht_size: NumberFor<Block>,
    block: NumberFor<Block>
) -> Result<Option<Block::Hash>>
[src]

Get headers CHT root for given block. Returns None if the block is not a part of any CHT.

fn changes_trie_cht_root(
    &self,
    cht_size: NumberFor<Block>,
    block: NumberFor<Block>
) -> Result<Option<Block::Hash>>
[src]

Get changes trie CHT root for given block. Returns None if the block is not a part of any CHT.

Loading content...

Implementors

impl<Block: BlockT> ProvideChtRoots<Block> for Blockchain<Block>[src]

Loading content...