More tests and some cleanup (#3331)

This commit is contained in:
Bastian Köcher
2019-08-08 00:05:15 +02:00
committed by GitHub
parent 556a9416ae
commit 46709e8381
6 changed files with 126 additions and 70 deletions
-3
View File
@@ -463,7 +463,6 @@ where
config.disable_grandpa = cli.no_grandpa;
config.grandpa_voter = cli.grandpa_voter;
let is_dev = cli.shared_params.dev;
let client_id = config.client_id();
@@ -481,14 +480,12 @@ where
cli.pool_config,
)?;
if cli.shared_params.dev {
config.dev_key_seed = cli.keyring.account
.map(|a| format!("//{}", a))
.or_else(|| Some("//Alice".into()));
}
let rpc_interface: &str = if cli.rpc_external { "0.0.0.0" } else { "127.0.0.1" };
let ws_interface: &str = if cli.ws_external { "0.0.0.0" } else { "127.0.0.1" };