mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +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:
@@ -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