mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 18:01:04 +00:00
PVF: Add Secure Validator Mode (#2486)
Co-authored-by: Javier Viola <javier@parity.io>
This commit is contained in:
@@ -88,6 +88,12 @@ pub struct RunCmd {
|
||||
#[arg(long)]
|
||||
pub no_beefy: bool,
|
||||
|
||||
/// Allows a validator to run insecurely outside of Secure Validator Mode. Security features
|
||||
/// are still enabled on a best-effort basis, but missing features are no longer required. For
|
||||
/// more information see <https://github.com/w3f/polkadot-wiki/issues/4881>.
|
||||
#[arg(long = "insecure-validator-i-know-what-i-do", requires = "validator")]
|
||||
pub insecure_validator: bool,
|
||||
|
||||
/// Enable the block authoring backoff that is triggered when finality is lagging.
|
||||
#[arg(long)]
|
||||
pub force_authoring_backoff: bool,
|
||||
|
||||
@@ -238,6 +238,8 @@ where
|
||||
let node_version =
|
||||
if cli.run.disable_worker_version_check { None } else { Some(NODE_VERSION.to_string()) };
|
||||
|
||||
let secure_validator_mode = cli.run.base.validator && !cli.run.insecure_validator;
|
||||
|
||||
runner.run_node_until_exit(move |config| async move {
|
||||
let hwbench = (!cli.run.no_hardware_benchmarks)
|
||||
.then_some(config.database.path().map(|database_path| {
|
||||
@@ -256,6 +258,7 @@ where
|
||||
jaeger_agent,
|
||||
telemetry_worker_handle: None,
|
||||
node_version,
|
||||
secure_validator_mode,
|
||||
workers_path: cli.run.workers_path,
|
||||
workers_names: None,
|
||||
overseer_gen,
|
||||
|
||||
Reference in New Issue
Block a user