Merge pull request #1497 from ethcore/clone-work

Optionally clone block behind work-package
This commit is contained in:
Arkadiy Paronyan
2016-06-30 15:50:27 +02:00
committed by GitHub
6 changed files with 92 additions and 7 deletions

View File

@@ -169,6 +169,10 @@ Sealing/Mining Options:
more than 32 characters.
--tx-queue-size LIMIT Maximum amount of transactions in the queue (waiting
to be included in next block) [default: 1024].
--remove-solved Move solved blocks from the work package queue
instead of cloning them. This gives a slightly
faster import speed, but means that extra solutions
submitted for the same work package will go unused.
--notify-work URLS URLs to which work package notifications are pushed.
URLS should be a comma-delimited list of HTTP URLs.
@@ -313,6 +317,7 @@ pub struct Args {
pub flag_reseal_on_txs: String,
pub flag_reseal_min_period: u64,
pub flag_work_queue_size: usize,
pub flag_remove_solved: bool,
pub flag_tx_gas_limit: Option<String>,
pub flag_relay_set: String,
pub flag_author: Option<String>,

View File

@@ -112,6 +112,7 @@ impl Configuration {
},
reseal_min_period: Duration::from_millis(self.args.flag_reseal_min_period),
work_queue_size: self.args.flag_work_queue_size,
enable_resubmission: !self.args.flag_remove_solved,
}
}