pub trait HistoryHost {
    // Required methods
    fn consensus_state_at(&self, height: u64) -> Result<ConsensusState, Error>;
    fn consensus_events_at(
        &self,
        height: u64,
        kind: EventKind,
    ) -> Result<Vec<Event>, Error>;
}Expand description
Interface to the runtime host to fetch historic information.
Required Methods§
Sourcefn consensus_state_at(&self, height: u64) -> Result<ConsensusState, Error>
 
fn consensus_state_at(&self, height: u64) -> Result<ConsensusState, Error>
Fetch historic consensus state after executing the block at given height.
Trait Implementations§
Source§impl HistoryHost for Box<dyn HistoryHost>
 
impl HistoryHost for Box<dyn HistoryHost>
Source§fn consensus_state_at(&self, height: u64) -> Result<ConsensusState, Error>
 
fn consensus_state_at(&self, height: u64) -> Result<ConsensusState, Error>
Fetch historic consensus state after executing the block at given height.