pub trait ChainState {
// Required methods
fn height(&self) -> u64;
fn block_hash(&self) -> BlockHash;
fn mmr_root(&self) -> Hash;
fn event_count(&self) -> u64;
}Expand description
Trait for chain state that can be verified.
Required Methods§
Sourcefn block_hash(&self) -> BlockHash
fn block_hash(&self) -> BlockHash
Get the current block hash.
Sourcefn event_count(&self) -> u64
fn event_count(&self) -> u64
Get total event count.