mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 04:37:57 +00:00
node: remove grandpa authority flags (#1306)
This commit is contained in:
@@ -120,21 +120,10 @@ pub fn run<I, T, E>(args: I, exit: E, version: cli::VersionInfo) -> error::Resul
|
||||
Err(e) => e.exit(),
|
||||
};
|
||||
|
||||
let (spec, mut config) = cli::parse_matches::<service::Factory, _>(
|
||||
let (spec, config) = cli::parse_matches::<service::Factory, _>(
|
||||
load_spec, version, "substrate-node", &matches
|
||||
)?;
|
||||
|
||||
if matches.is_present("grandpa_authority_only") {
|
||||
config.custom.grandpa_authority = true;
|
||||
config.custom.grandpa_authority_only = true;
|
||||
// Authority Setup is only called if validator is set as true
|
||||
config.roles = ServiceRoles::AUTHORITY;
|
||||
} else if matches.is_present("grandpa_authority") {
|
||||
config.custom.grandpa_authority = true;
|
||||
// Authority Setup is only called if validator is set as true
|
||||
config.roles = ServiceRoles::AUTHORITY;
|
||||
}
|
||||
|
||||
match cli::execute_default::<service::Factory, _>(spec, exit, &matches, &config)? {
|
||||
cli::Action::ExecutedInternally => (),
|
||||
cli::Action::RunService(exit) => {
|
||||
|
||||
Reference in New Issue
Block a user