Trait sc_light::blockchain::ProvideChtRoots [−][src]
pub trait ProvideChtRoots<Block> where
Block: Block, { 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>; 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>; }
Expand description
Provide CHT roots. These are stored on a light client and generated dynamically on a full client.
Required methods
Get headers CHT root for given block. Returns None if the block is not a part of any CHT.
Implementations on Foreign Types
Implementors
impl<S: Storage<Block>, Block: BlockT> ProvideChtRoots<Block> for sc_light::blockchain::Blockchain<S>