mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 05:17:58 +00:00
cli: enable BEEFY by default on test networks (#7293)
We consider BEEFY mature enough to run by default on all nodes for test networks (Rococo/Wococo/Versi). Right now, most nodes are not running it since it's opt-in using --beefy flag. Switch to an opt-out model for test networks. Replace --beefy flag from CLI with --no-beefy and have BEEFY client start by default on test networks. Signed-off-by: acatangiu <adrian@parity.io>
This commit is contained in:
@@ -114,9 +114,10 @@ pub struct RunCmd {
|
||||
#[arg(long = "grandpa-pause", num_args = 2)]
|
||||
pub grandpa_pause: Vec<u32>,
|
||||
|
||||
/// Enable the BEEFY gadget (only on Rococo or Wococo for now).
|
||||
/// Disable the BEEFY gadget
|
||||
/// (currently enabled by default on Rococo, Wococo and Versi).
|
||||
#[arg(long)]
|
||||
pub beefy: bool,
|
||||
pub no_beefy: bool,
|
||||
|
||||
/// Add the destination address to the jaeger agent.
|
||||
///
|
||||
|
||||
@@ -298,12 +298,9 @@ where
|
||||
.map_err(Error::from)?;
|
||||
let chain_spec = &runner.config().chain_spec;
|
||||
|
||||
// Disallow BEEFY on production networks.
|
||||
if cli.run.beefy &&
|
||||
(chain_spec.is_polkadot() || chain_spec.is_kusama() || chain_spec.is_westend())
|
||||
{
|
||||
return Err(Error::Other("BEEFY disallowed on production networks".to_string()))
|
||||
}
|
||||
// By default, enable BEEFY on test networks.
|
||||
let enable_beefy = (chain_spec.is_rococo() || chain_spec.is_wococo() || chain_spec.is_versi()) &&
|
||||
!cli.run.no_beefy;
|
||||
|
||||
set_default_ss58_version(chain_spec);
|
||||
|
||||
@@ -346,7 +343,7 @@ where
|
||||
config,
|
||||
service::IsCollator::No,
|
||||
grandpa_pause,
|
||||
cli.run.beefy,
|
||||
enable_beefy,
|
||||
jaeger_agent,
|
||||
None,
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user