[−][src]Trait sp_state_machine::ChangesTrieRootsStorage
Changes trie storage. Provides access to trie roots and trie nodes.
Required methods
pub fn build_anchor(
&self,
hash: H::Out
) -> Result<AnchorBlockId<H::Out, Number>, String>
[src]
&self,
hash: H::Out
) -> Result<AnchorBlockId<H::Out, Number>, String>
Resolve hash of the block into anchor.
pub fn root(
&self,
anchor: &AnchorBlockId<H::Out, Number>,
block: Number
) -> Result<Option<H::Out>, String>
[src]
&self,
anchor: &AnchorBlockId<H::Out, Number>,
block: Number
) -> Result<Option<H::Out>, String>
Get changes trie root for the block with given number which is an ancestor (or the block itself) of the anchor_block (i.e. anchor_block.number >= block).
Implementors
impl<H: Hasher, Number: BlockNumber> RootsStorage<H, Number> for InMemoryStorage<H, Number>
[src]
pub fn build_anchor(
&self,
parent_hash: H::Out
) -> Result<AnchorBlockId<H::Out, Number>, String>
[src]
&self,
parent_hash: H::Out
) -> Result<AnchorBlockId<H::Out, Number>, String>
pub fn root(
&self,
_anchor_block: &AnchorBlockId<H::Out, Number>,
block: Number
) -> Result<Option<H::Out>, String>
[src]
&self,
_anchor_block: &AnchorBlockId<H::Out, Number>,
block: Number
) -> Result<Option<H::Out>, String>