Class StoredConfiguration
- java.lang.Object
-
- com.exonum.binding.common.configuration.StoredConfiguration
-
public abstract class StoredConfiguration extends Object
Represents a blockchain configuration which is a set of values that determine the network access parameters of a node and behavior of the node while operating in the network.See Exonum configuration for configuration details.
Services configuration parameters would be available after (https://jira.bf.local/browse/ECR-2683) would be implemented.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoredConfiguration.Builder
-
Constructor Summary
Constructors Constructor Description StoredConfiguration()
-
Method Summary
Modifier and Type Method Description abstract longactualFrom()The height, starting from which this configuration becomes actual.static StoredConfiguration.Builderbuilder()abstract ConsensusConfigurationconsensusConfiguration()Consensus algorithm parameters.abstract HashCodepreviousCfgHash()Hash of the previous configuration, which can be used to find that configuration.static com.google.gson.TypeAdapter<StoredConfiguration>typeAdapter(com.google.gson.Gson gson)Provides a Gson type adapter for this class.abstract List<ValidatorKey>validatorKeys()List of validators consensus and service public keys.
-
-
-
Method Detail
-
previousCfgHash
@SerializedName("previous_cfg_hash") public abstract HashCode previousCfgHash()Hash of the previous configuration, which can be used to find that configuration.
-
actualFrom
@SerializedName("actual_from") public abstract long actualFrom()The height, starting from which this configuration becomes actual.
-
validatorKeys
@SerializedName("validator_keys") public abstract List<ValidatorKey> validatorKeys()List of validators consensus and service public keys.- See Also:
- Validator keys configuration section
-
consensusConfiguration
@SerializedName("consensus") public abstract ConsensusConfiguration consensusConfiguration()Consensus algorithm parameters.
-
typeAdapter
public static com.google.gson.TypeAdapter<StoredConfiguration> typeAdapter(com.google.gson.Gson gson)
Provides a Gson type adapter for this class.- See Also:
StoredConfigurationAdapterFactory
-
builder
public static StoredConfiguration.Builder builder()
-
-