pub trait ProtocolStateHeader {
fn get_height(&self) -> Length;
fn min_window_density(&self) -> Length;
fn sub_window_densities(&self) -> &Vec<Length>;
fn consensus_state(&self) -> &ConsensusState;
fn constants(&self) -> &ProtocolConstants;
fn state_hash_fp(&self) -> Fp;
}
Expand description
Implementing types have some notion of height and can return it
Required Methods
sourcefn get_height(&self) -> Length
fn get_height(&self) -> Length
Get the height for the implementing type
sourcefn min_window_density(&self) -> Length
fn min_window_density(&self) -> Length
The minimum window density at the current epoch.
sourcefn sub_window_densities(&self) -> &Vec<Length>
fn sub_window_densities(&self) -> &Vec<Length>
A list of density values of the sub windows.
sourcefn consensus_state(&self) -> &ConsensusState
fn consensus_state(&self) -> &ConsensusState
Consensus state
sourcefn constants(&self) -> &ProtocolConstants
fn constants(&self) -> &ProtocolConstants
Constants
sourcefn state_hash_fp(&self) -> Fp
fn state_hash_fp(&self) -> Fp
State hash fp