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: StringThe binary name.
root_dir: PathBufThe root directory.
data_dir: PathBufThe data directory.
chain: ChainConfigChain config options.
logger: LogConfigLogger config options.
metrics: MetricsConfigMetrics options.
Developers can collect metrics for performance tuning and troubleshooting.
memory_tracker: MemoryTrackerConfigMemory tracker options.
Developers can enable memory tracker to analyze the process memory usage.
miner: MinerConfigThe miner config options.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MinerAppConfig
impl Send for MinerAppConfig
impl Sync for MinerAppConfig
impl Unpin for MinerAppConfig
impl UnwindSafe for MinerAppConfig
Blanket Implementations
Mutably borrows from an owned value. Read more