mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
CLI option to enable authoring when offline (#2104)
* CLI option to enable authoring when offline * Update core/service/src/config.rs Co-Authored-By: arkpar <arkady.paronyan@gmail.com>
This commit is contained in:
@@ -470,6 +470,8 @@ where
|
||||
config.telemetry_endpoints = Some(TelemetryEndpoints::new(cli.telemetry_endpoints));
|
||||
}
|
||||
|
||||
config.force_authoring = cli.force_authoring;
|
||||
|
||||
Ok(config)
|
||||
}
|
||||
|
||||
|
||||
@@ -325,6 +325,10 @@ pub struct RunCmd {
|
||||
#[allow(missing_docs)]
|
||||
#[structopt(flatten)]
|
||||
pub keyring: Keyring,
|
||||
|
||||
/// Enable authoring even when offline.
|
||||
#[structopt(long = "force-authoring")]
|
||||
pub force_authoring: bool,
|
||||
}
|
||||
|
||||
/// Stores all required Cli values for a keyring test account.
|
||||
|
||||
Reference in New Issue
Block a user