From 7c1fc4cc770f15e11a1996453c9582cf2abf01c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= <bkchr@users.noreply.github.com> Date: Thu, 8 Aug 2019 13:11:46 +0200 Subject: [PATCH] Make `--dev` to `--alice` again (#3338) --- substrate/core/cli/src/lib.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/substrate/core/cli/src/lib.rs b/substrate/core/cli/src/lib.rs index 6c2a36121ee..564065e0a65 100644 --- a/substrate/core/cli/src/lib.rs +++ b/substrate/core/cli/src/lib.rs @@ -473,7 +473,14 @@ where fill_transaction_pool_configuration::<F>(&mut config, cli.pool_config)?; - config.dev_key_seed = cli.keyring.account.map(|a| format!("//{}", a)); + config.dev_key_seed = cli.keyring.account + .map(|a| format!("//{}", a)).or_else(|| { + if is_dev { + Some("//Alice".into()) + } else { + None + } + }); 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" }; -- GitLab