Trait sc_light::blockchain::ProvideChtRoots[][src]

pub trait ProvideChtRoots<Block> where
    Block: Block
{ pub fn header_cht_root(
        &self,
        cht_size: <<Block as Block>::Header as Header>::Number,
        block: <<Block as Block>::Header as Header>::Number
    ) -> Result<Option<<Block as Block>::Hash>, Error>;
pub fn changes_trie_cht_root(
        &self,
        cht_size: <<Block as Block>::Header as Header>::Number,
        block: <<Block as Block>::Header as Header>::Number
    ) -> Result<Option<<Block as Block>::Hash>, Error>; }

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: <<Block as Block>::Header as Header>::Number,
    block: <<Block as Block>::Header as Header>::Number
) -> Result<Option<<Block as Block>::Hash>, Error>
[src]

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: <<Block as Block>::Header as Header>::Number,
    block: <<Block as Block>::Header as Header>::Number
) -> Result<Option<<Block as Block>::Hash>, Error>
[src]

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

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

impl<S: Storage<Block>, Block: BlockT> ProvideChtRoots<Block> for sc_light::blockchain::Blockchain<S>[src]

Loading content...