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

Link to the previous configuration. For configuration in the genesis block hash is just an array of zeros.

The height, starting from which this configuration becomes actual.

List of validator's consensus and service public keys.

Consensus algorithm parameters.

Services specific variables. Keys are service_name from Service trait and values are the serialized json.

Methods

impl StoredConfiguration
[src]

[src]

Tries to serialize given configuration into the utf8 encoded json.

[src]

Tries to deserialize StorageConfiguration from the given utf8 encoded json.

Trait Implementations

impl Clone for StoredConfiguration
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for StoredConfiguration
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for StoredConfiguration
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl StorageValue for StoredConfiguration
[src]

[src]

Serialize a value into a vector of bytes.

[src]

Deserialize a value from bytes.

[src]

Returns a hash of the value. Read more