Trait LocalChainInfoExt

Source
pub trait LocalChainInfoExt {
    // Required methods
    fn into_committees(
        self,
    ) -> Result<BTreeMap<Epoch, Committee>, LocalNodeError>;
    fn into_current_committee(self) -> Result<Committee, LocalNodeError>;
    fn current_committee(&self) -> Result<&Committee, LocalNodeError>;
}
Expand description

Extension trait for ChainInfos from our local node. These should always be valid and contain the requested information.

Required Methods§

Source

fn into_committees(self) -> Result<BTreeMap<Epoch, Committee>, LocalNodeError>

Returns the requested map of committees.

Source

fn into_current_committee(self) -> Result<Committee, LocalNodeError>

Returns the current committee.

Source

fn current_committee(&self) -> Result<&Committee, LocalNodeError>

Returns a reference to the current committee.

Implementors§