Struct ckb_app_config::MinerAppConfig[][src]

pub struct MinerAppConfig {
    pub bin_name: String,
    pub root_dir: PathBuf,
    pub data_dir: PathBuf,
    pub chain: ChainConfig,
    pub logger: LogConfig,
    pub metrics: MetricsConfig,
    pub memory_tracker: MemoryTrackerConfig,
    pub miner: MinerConfig,
}
Expand description

The miner config file for ckb miner. Usually it is the ckb-miner.toml in the CKB root directory.

Attention: Changing the order of fields will break integration test, see module doc.

Fields

bin_name: String

The binary name.

root_dir: PathBuf

The root directory.

data_dir: PathBuf

The data directory.

chain: ChainConfig

Chain config options.

logger: LogConfig

Logger config options.

metrics: MetricsConfig

Metrics options.

Developers can collect metrics for performance tuning and troubleshooting.

memory_tracker: MemoryTrackerConfig

Memory tracker options.

Developers can enable memory tracker to analyze the process memory usage.

miner: MinerConfig

The miner config options.

Implementations

Load a new instance from a file.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.