pub trait ChangesTrieRootsStorage<H: Hasher, Number: BlockNumber>: Send + Sync {
fn build_anchor(
&self,
hash: H::Out
) -> Result<AnchorBlockId<H::Out, Number>, String>;
fn root(
&self,
anchor: &AnchorBlockId<H::Out, Number>,
block: Number
) -> Result<Option<H::Out>, String>;
}
Expand description
Changes trie storage. Provides access to trie roots and trie nodes.
Required methods
fn build_anchor(
&self,
hash: H::Out
) -> Result<AnchorBlockId<H::Out, Number>, String>
fn build_anchor(
&self,
hash: H::Out
) -> Result<AnchorBlockId<H::Out, Number>, String>
Resolve hash of the block into anchor.