HTTP work notifier

This commit is contained in:
arkpar
2016-06-29 20:07:21 +02:00
parent e24f9c9936
commit b3f37f3cb4
9 changed files with 148 additions and 18 deletions

View File

@@ -322,7 +322,7 @@ pub struct Args {
pub flag_gas_cap: String,
pub flag_extra_data: Option<String>,
pub flag_tx_queue_size: usize,
pub flag_work_notify: Option<String>,
pub flag_notify_work: Option<String>,
pub flag_logging: Option<String>,
pub flag_version: bool,
pub flag_from: String,

View File

@@ -84,8 +84,8 @@ impl Configuration {
)
}
pub fn work_notify(&self) -> Vec<String> {
self.args.flag_work_notify.as_ref().map_or_else(Vec::new, |s| s.split(',').map(|s| s.to_owned()).collect())
fn work_notify(&self) -> Vec<String> {
self.args.flag_notify_work.as_ref().map_or_else(Vec::new, |s| s.split(',').map(|s| s.to_owned()).collect())
}
pub fn miner_options(&self) -> MinerOptions {