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

pub trait ProvideChtRoots<Block: BlockT> {
    pub fn header_cht_root(
        &self,
        cht_size: NumberFor<Block>,
        block: NumberFor<Block>
    ) -> Result<Option<Block::Hash>>;
pub 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

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

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

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

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...