Fix Polkadot CLI arguments not properly parsed (#163)

* Initial commit

Forked at: f26dd45e78
Parent branch: origin/master

* Fix polkadot cli arguments not properly parsed

* Update test/parachain/src/command.rs

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Cecile Tonglet
2020-07-30 09:59:25 +02:00
committed by GitHub
parent f26dd45e78
commit 9843ebc16e
2 changed files with 78 additions and 8 deletions
+7
View File
@@ -108,6 +108,13 @@ pub fn run_collator(
TaskManager,
Arc<TFullClient<parachain_runtime::opaque::Block, parachain_runtime::RuntimeApi, crate::service::Executor>>,
)> {
if matches!(parachain_config.role, Role::Light) {
return Err("Light client not supported!".into());
}
if matches!(polkadot_config.role, Role::Light) {
return Err("Light client not supported!".into());
}
let mut parachain_config = prepare_collator_config(parachain_config);
parachain_config.informant_output_format = OutputFormat {