Fix: relay chain arguments need a first argument "command" (#65)

Otherwise the first positional argument is just swallowed

Fixes #62

Forked at: e81bbaaefa
Parent branch: origin/master
This commit is contained in:
Cecile Tonglet
2020-02-18 15:22:40 +01:00
committed by GitHub
parent e81bbaaefa
commit 4be87f7eca
2 changed files with 57 additions and 1 deletions
+4 -1
View File
@@ -98,7 +98,10 @@ pub fn run(version: VersionInfo) -> error::Result<()> {
polkadot_config.config_dir = config.in_chain_config_dir("polkadot");
let polkadot_opt: PolkadotCli = sc_cli::from_iter(opt.relaychain_args, &version);
let polkadot_opt: PolkadotCli = sc_cli::from_iter(
[version.executable_name.to_string()].iter().chain(opt.relaychain_args.iter()),
&version,
);
let allow_private_ipv4 = !polkadot_opt.run.network_config.no_private_ipv4;
polkadot_config.rpc_http = Some(DEFAULT_POLKADOT_RPC_HTTP.parse().unwrap());