mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 19:47:59 +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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user