Struct exonum_configuration::Schema
[−]
[src]
pub struct Schema<T> { /* fields omitted */ }
Database schema used by the configuration service.
Methods
impl<T> Schema<T> where
T: AsRef<Snapshot>,
[src]
T: AsRef<Snapshot>,
pub fn new(snapshot: T) -> Schema<T>
[src]
Creates a new schema.
pub fn propose_data_by_config_hash(
&self
) -> ProofMapIndex<&Snapshot, Hash, ProposeData>
[src]
&self
) -> ProofMapIndex<&Snapshot, Hash, ProposeData>
Returns propose information indexed by the hash of the configuration corresponding to a proposal.
Consult the crate-level docs for details how hashes of the configuration are calculated.
pub fn config_hash_by_ordinal(&self) -> ProofListIndex<&Snapshot, Hash>
[src]
Returns a table of hashes of proposed configurations in the commit order.
pub fn votes_by_config_hash(
&self,
config_hash: &Hash
) -> ProofListIndex<&Snapshot, MaybeVote>
[src]
&self,
config_hash: &Hash
) -> ProofListIndex<&Snapshot, MaybeVote>
Returns a table of votes of validators for a particular proposal, referenced by its configuration hash.
pub fn propose(&self, cfg_hash: &Hash) -> Option<Propose>
[src]
Returns a Propose
transaction with a particular configuration hash.
pub fn votes(&self, cfg_hash: &Hash) -> Vec<Option<Vote>>
[src]
Returns a list of votes for the proposal corresponding to the given configuration hash.
pub fn state_hash(&self) -> Vec<Hash>
[src]
Returns state hash values used by the configuration service.