Struct exonum::blockchain::config::StoredConfiguration
[−]
[src]
pub struct StoredConfiguration { pub previous_cfg_hash: Hash, pub actual_from: Height, pub validator_keys: Vec<ValidatorKeys>, pub consensus: ConsensusConfig, pub services: BTreeMap<String, Value>, }
Exonum blockchain global configuration. This configuration must be same for any exonum node in the certain network on given height.
Fields
previous_cfg_hash: Hash
Link to the previous configuration.
For configuration in the genesis block hash
is just an array of zeros.
actual_from: Height
The height, starting from which this configuration becomes actual.
validator_keys: Vec<ValidatorKeys>
List of validator's consensus and service public keys.
consensus: ConsensusConfig
Consensus algorithm parameters.
services: BTreeMap<String, Value>
Services specific variables.
Keys are service_name
from Service
trait and values are the serialized json.
Methods
impl StoredConfiguration
[src]
fn try_serialize(&self) -> Result<Vec<u8>, JsonError>
[src]
Tries to serialize given configuration into the utf8 encoded json.
fn try_deserialize(serialized: &[u8]) -> Result<StoredConfiguration, JsonError>
[src]
Tries to deserialize StorageConfiguration
from the given utf8 encoded json.
Trait Implementations
impl Clone for StoredConfiguration
[src]
fn clone(&self) -> StoredConfiguration
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for StoredConfiguration
[src]
impl PartialEq for StoredConfiguration
[src]
fn eq(&self, __arg_0: &StoredConfiguration) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StoredConfiguration) -> bool
[src]
This method tests for !=
.