Add CLI option and route to MinerOptions.

This commit is contained in:
Gav Wood
2016-06-29 15:37:11 +02:00
parent 78ebc8b975
commit 7c27f9dfed
3 changed files with 11 additions and 0 deletions

View File

@@ -44,6 +44,8 @@ pub enum PendingSet {
/// Configures the behaviour of the miner.
#[derive(Debug)]
pub struct MinerOptions {
/// URLs to notify when there is new work.
pub new_work_notify: Vec<String>,
/// Force the miner to reseal, even when nobody has asked for work.
pub force_sealing: bool,
/// Reseal on receipt of new external transactions.
@@ -61,6 +63,7 @@ pub struct MinerOptions {
impl Default for MinerOptions {
fn default() -> Self {
MinerOptions {
new_work_notify: vec![],
force_sealing: false,
reseal_on_external_tx: true,
reseal_on_own_tx: true,