mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-23 04:06:20 +00:00
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:
1 parent
620e8dc8b9
commit
e28ff32b89
5 files changed
+16
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user