Struct exonum_configuration::ConfigurationService [] [src]

pub struct ConfigurationService {}

Struct, implementing Service trait template. Most of the actual business logic of modifying Exonum blockchain configuration is inside of TxConfigPropose and TxConfigVote.

Methods

impl ConfigurationService
[src]

Trait Implementations

impl Default for ConfigurationService
[src]

Returns the "default value" for a type. Read more

impl Service for ConfigurationService
[src]

Unique human readable service name.

Unique service identification for database schema and service messages.

ConfigurationService returns a vector, containing the single root_hash of all config proposes table.

Thus, state_hash is affected by any new valid propose and indirectly by any new vote for a propose.

When a new vote for a config propose is added the root_hash of corresponding votes for a propose table is modified. Such hash is stored in each entry of all config proposes table - StorageValueConfigProposeData.

Returns box (ConfigTx)

Returns api handler for public users.

Returns api handler for maintainers.

By this method you can initialize information schema of service and generates initial service configuration. This method is called on genesis block creation event. Read more

Handles commit event. This handler is invoked for each service after commit of the block. For example service can create some transaction if the specific condition occurred. Read more

impl ServiceFactory for ConfigurationService
[src]

Create a new service instance from the context returned by the Run command.

Returns CommandExtension for the specific CommandName.