Struct ckb_app_config::Setup[][src]

pub struct Setup {
    pub subcommand_name: String,
    pub config: AppConfig,
}
Expand description

A struct including all the informations to start the ckb process.

Fields

subcommand_name: String

Subcommand name.

For example, this is set to run when ckb is executed with ckb run.

config: AppConfig

The config file for the current subcommand.

Implementations

Boots the ckb process by parsing the command line arguments and loading the config file.

Executes ckb run.

migrate subcommand has one flags arg, trigger this arg with “–check”

db-repair subcommand

Executes ckb miner.

Executes ckb replay.

Executes ckb stats.

Executes ckb import.

Executes ckb export.

Executes ckb init.

Executes ckb reset-data.

Resolves the root directory for ckb from the command line arguments.

Gets the consensus.

Gets the network peer id by reading the network secret key.

Generates the network secret key.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.