mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-23 04:06:20 +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:
1 parent
44db5f44e3
commit
c6addc9bd5
7 files changed
+31
-3
No files matched your search
@@ -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