[][src]Trait sc_client_api::backend::PrunableStateChangesTrieStorage

pub trait PrunableStateChangesTrieStorage<Block: BlockT>: StateChangesTrieStorage<HashFor<Block>, NumberFor<Block>> {
    pub fn storage(
        &self
    ) -> &dyn StateChangesTrieStorage<HashFor<Block>, NumberFor<Block>>;
pub fn configuration_at(
        &self,
        at: &BlockId<Block>
    ) -> Result<ChangesTrieConfigurationRange<NumberFor<Block>, Block::Hash>>;
pub fn oldest_pruned_digest_range_end(&self) -> NumberFor<Block>; }

Changes trie storage that supports pruning.

Required methods

pub fn storage(
    &self
) -> &dyn StateChangesTrieStorage<HashFor<Block>, NumberFor<Block>>
[src]

Get reference to StateChangesTrieStorage.

pub fn configuration_at(
    &self,
    at: &BlockId<Block>
) -> Result<ChangesTrieConfigurationRange<NumberFor<Block>, Block::Hash>>
[src]

Get configuration at given block.

pub fn oldest_pruned_digest_range_end(&self) -> NumberFor<Block>[src]

Get end block (inclusive) of oldest pruned max-level (or skewed) digest trie blocks range. It is guaranteed that we have no any changes tries before (and including) this block. It is guaranteed that all existing changes tries after this block are not yet pruned (if created).

Loading content...

Implementors

Loading content...