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 ChainInfo
s from our local node. These should always be valid and
contain the requested information.
Required Methods§
Sourcefn into_committees(self) -> Result<BTreeMap<Epoch, Committee>, LocalNodeError>
fn into_committees(self) -> Result<BTreeMap<Epoch, Committee>, LocalNodeError>
Returns the requested map of committees.
Sourcefn into_current_committee(self) -> Result<Committee, LocalNodeError>
fn into_current_committee(self) -> Result<Committee, LocalNodeError>
Returns the current committee.
Sourcefn current_committee(&self) -> Result<&Committee, LocalNodeError>
fn current_committee(&self) -> Result<&Committee, LocalNodeError>
Returns a reference to the current committee.