Class StoredConfiguration
- java.lang.Object
-
- com.exonum.binding.common.configuration.StoredConfiguration
-
public abstract class StoredConfiguration extends java.lang.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 class
StoredConfiguration.Builder
-
Constructor Summary
Constructors Constructor Description StoredConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract long
actualFrom()
The height, starting from which this configuration becomes actual.static StoredConfiguration.Builder
builder()
abstract ConsensusConfiguration
consensusConfiguration()
Consensus algorithm parameters.abstract HashCode
previousCfgHash()
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 java.util.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 java.util.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()
-
-