Trait sc_light::blockchain::ProvideChtRoots [−][src]
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]
&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>
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]
&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>
Get changes trie CHT root for given block. Returns None if the block is not a part of any CHT.
Implementations on Foreign Types
impl<Block> ProvideChtRoots<Block> for Blockchain<Block> where
Block: Block,
[src]
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>
[src]
&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>
[src]
&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>