Trait oasis_runtime_sdk::history::HistoryHost
source · 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.