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
2019-03-25 15:19:36 +00:00
committed by GitHub
parent 620e8dc8b9
commit e28ff32b89
5 changed files with 16 additions and 0 deletions
+6
View File
@@ -103,6 +103,12 @@ construct_service_factory! {
info!("Running Grandpa session as Authority {}", key.public());
}
let local_key = if service.config.disable_grandpa {
None
} else {
local_key
};
executor.spawn(grandpa::run_grandpa(
grandpa::Config {
local_key,