Struct ckb_app_config::MinerArgs
source · pub struct MinerArgs {
pub config: MinerConfig,
pub pow_engine: Arc<dyn PowEngine>,
pub memory_tracker: MemoryTrackerConfig,
pub limit: u128,
}
Expand description
Parsed command line arguments for ckb miner
.
Fields§
§config: MinerConfig
Parsed ckb-miner.toml
.
pow_engine: Arc<dyn PowEngine>
Selected PoW algorithm.
memory_tracker: MemoryTrackerConfig
Options to configure the memory tracker.
limit: u128
The miner process will exit when there are limit
nonces (puzzle solutions) found. Set it
to 0 to loop forever.
Auto Trait Implementations§
impl !RefUnwindSafe for MinerArgs
impl Send for MinerArgs
impl Sync for MinerArgs
impl Unpin for MinerArgs
impl !UnwindSafe for MinerArgs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more