core: cli flag to disable grandpa (#2105)

* core: cli flag to disable grandpa

* core: fix test service configuration

* Update core/service/test/src/lib.rs
This commit is contained in:
André Silva authored and GitHub committed 2019-03-25 15:19:36 +00:00
1 parent 620e8dc8b9
commit e28ff32b89
5 files changed
+16

No files matched your search

+2
View File
@@ -427,6 +427,8 @@ where
};
config.roles = role;
config.disable_grandpa = cli.no_grandpa;
let client_id = config.client_id();
fill_network_configuration(
cli.network_config,
+4
View File
@@ -220,6 +220,10 @@ pub struct RunCmd {
#[structopt(long = "validator")]
pub validator: bool,
/// Disable GRANDPA when running in validator mode
#[structopt(long = "no-grandpa")]
pub no_grandpa: bool,
/// Run in light client mode
#[structopt(long = "light")]
pub light: bool,