hashing secret on the sync side
This commit is contained in:
parent
9eed51ed20
commit
a44e95b0ec
@ -38,6 +38,7 @@ use std::thread;
|
|||||||
use util::numbers::{U256, H256};
|
use util::numbers::{U256, H256};
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use nanoipc::IpcInterface;
|
use nanoipc::IpcInterface;
|
||||||
|
use util::sha3::*;
|
||||||
|
|
||||||
const USAGE: &'static str = "
|
const USAGE: &'static str = "
|
||||||
Ethcore sync service
|
Ethcore sync service
|
||||||
@ -80,7 +81,7 @@ impl Args {
|
|||||||
boot_nodes: self.flag_boot_nodes,
|
boot_nodes: self.flag_boot_nodes,
|
||||||
listen_address: Some(self.arg_listen_address),
|
listen_address: Some(self.arg_listen_address),
|
||||||
public_address: self.flag_public_address,
|
public_address: self.flag_public_address,
|
||||||
use_secret: self.flag_secret.as_ref().map(|s| H256::from_str(s).unwrap()),
|
use_secret: self.flag_secret.as_ref().map(|s| H256::from_str(s).unwrap_or_else(|_| s.sha3())),
|
||||||
discovery_enabled: self.arg_discovery_enabled,
|
discovery_enabled: self.arg_discovery_enabled,
|
||||||
ideal_peers: self.arg_ideal_peers,
|
ideal_peers: self.arg_ideal_peers,
|
||||||
config_path: Some(self.arg_config_path),
|
config_path: Some(self.arg_config_path),
|
||||||
|
Loading…
Reference in New Issue
Block a user