From 3575e6bbc13f7b3987e7633e782734e794682769 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 12 Feb 2016 00:24:10 +0100 Subject: [PATCH] Update main.rs --- parity/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parity/main.rs b/parity/main.rs index 28e448705..62b73ca47 100644 --- a/parity/main.rs +++ b/parity/main.rs @@ -67,7 +67,7 @@ Options: --public-address URL Specify the IP/port on which peers may connect [default: 0.0.0.0:30304]. --address URL Equivalent to --listen-address URL --public-address URL. --upnp Use UPnP to try to figure out the correct network settings. - --net-key KEY Specify node secret key as hex string. + --node-key KEY Specify node secret key as hex string. --cache-pref-size BYTES Specify the prefered size of the blockchain cache in bytes [default: 16384]. --cache-max-size BYTES Specify the maximum size of the blockchain cache in bytes [default: 262144]. @@ -78,7 +78,7 @@ Options: -l --logging LOGGING Specify the logging level. -v --version Show information about version. -h --help Show this screen. -", flag_cache_pref_size: usize, flag_cache_max_size: usize, flag_address: Option, flag_net_key: Option); +", flag_cache_pref_size: usize, flag_cache_max_size: usize, flag_address: Option, flag_node_key: Option); fn setup_log(init: &str) { let mut builder = LogBuilder::new(); @@ -206,7 +206,7 @@ fn main() { let (listen, public) = conf.net_addresses(); net_settings.listen_address = listen; net_settings.public_address = public; - net_settings.use_secret = conf.args.flag_net_key.as_ref().map(|s| Secret::from_str(&s).expect("Invalid key string")); + net_settings.use_secret = conf.args.flag_node_key.as_ref().map(|s| Secret::from_str(&s).expect("Invalid key string")); // Build client let mut service = ClientService::start(spec, net_settings, &Path::new(&conf.path())).unwrap();