Unverified Commit dba4f1af authored by André Silva's avatar André Silva Committed by GitHub
Browse files

Enable BEEFY explicitly (#4320)

* enable beefy explicitly

* update beefy cli flag docs
parent d21e86d2
Pipeline #166792 passed with stages
in 38 minutes and 55 seconds
...@@ -101,9 +101,9 @@ pub struct RunCmd { ...@@ -101,9 +101,9 @@ pub struct RunCmd {
#[structopt(long = "grandpa-pause", number_of_values(2))] #[structopt(long = "grandpa-pause", number_of_values(2))]
pub grandpa_pause: Vec<u32>, pub grandpa_pause: Vec<u32>,
/// Disable BEEFY gadget. /// Enable the BEEFY gadget (only on Rococo or Wococo for now).
#[structopt(long)] #[structopt(long)]
pub no_beefy: bool, pub beefy: bool,
/// Add the destination address to the jaeger agent. /// Add the destination address to the jaeger agent.
/// ///
......
...@@ -254,7 +254,7 @@ fn run_node_inner(cli: Cli, overseer_gen: impl service::OverseerGen) -> Result<( ...@@ -254,7 +254,7 @@ fn run_node_inner(cli: Cli, overseer_gen: impl service::OverseerGen) -> Result<(
config, config,
service::IsCollator::No, service::IsCollator::No,
grandpa_pause, grandpa_pause,
cli.run.no_beefy, cli.run.beefy,
jaeger_agent, jaeger_agent,
None, None,
overseer_gen, overseer_gen,
......
...@@ -669,7 +669,7 @@ pub fn new_full<RuntimeApi, ExecutorDispatch, OverseerGenerator>( ...@@ -669,7 +669,7 @@ pub fn new_full<RuntimeApi, ExecutorDispatch, OverseerGenerator>(
mut config: Configuration, mut config: Configuration,
is_collator: IsCollator, is_collator: IsCollator,
grandpa_pause: Option<(u32, u32)>, grandpa_pause: Option<(u32, u32)>,
disable_beefy: bool, enable_beefy: bool,
jaeger_agent: Option<std::net::SocketAddr>, jaeger_agent: Option<std::net::SocketAddr>,
telemetry_worker_handle: Option<TelemetryWorkerHandle>, telemetry_worker_handle: Option<TelemetryWorkerHandle>,
program_path: Option<std::path::PathBuf>, program_path: Option<std::path::PathBuf>,
...@@ -1053,7 +1053,7 @@ where ...@@ -1053,7 +1053,7 @@ where
if role.is_authority() { Some(keystore_container.sync_keystore()) } else { None }; if role.is_authority() { Some(keystore_container.sync_keystore()) } else { None };
// We currently only run the BEEFY gadget on the Rococo and Wococo testnets. // We currently only run the BEEFY gadget on the Rococo and Wococo testnets.
if !disable_beefy && (chain_spec.is_rococo() || chain_spec.is_wococo()) { if enable_beefy && (chain_spec.is_rococo() || chain_spec.is_wococo()) {
let beefy_params = beefy_gadget::BeefyParams { let beefy_params = beefy_gadget::BeefyParams {
client: client.clone(), client: client.clone(),
backend: backend.clone(), backend: backend.clone(),
...@@ -1211,7 +1211,7 @@ pub fn build_full( ...@@ -1211,7 +1211,7 @@ pub fn build_full(
config: Configuration, config: Configuration,
is_collator: IsCollator, is_collator: IsCollator,
grandpa_pause: Option<(u32, u32)>, grandpa_pause: Option<(u32, u32)>,
disable_beefy: bool, enable_beefy: bool,
jaeger_agent: Option<std::net::SocketAddr>, jaeger_agent: Option<std::net::SocketAddr>,
telemetry_worker_handle: Option<TelemetryWorkerHandle>, telemetry_worker_handle: Option<TelemetryWorkerHandle>,
overseer_gen: impl OverseerGen, overseer_gen: impl OverseerGen,
...@@ -1222,7 +1222,7 @@ pub fn build_full( ...@@ -1222,7 +1222,7 @@ pub fn build_full(
config, config,
is_collator, is_collator,
grandpa_pause, grandpa_pause,
disable_beefy, enable_beefy,
jaeger_agent, jaeger_agent,
telemetry_worker_handle, telemetry_worker_handle,
None, None,
...@@ -1237,7 +1237,7 @@ pub fn build_full( ...@@ -1237,7 +1237,7 @@ pub fn build_full(
config, config,
is_collator, is_collator,
grandpa_pause, grandpa_pause,
disable_beefy, enable_beefy,
jaeger_agent, jaeger_agent,
telemetry_worker_handle, telemetry_worker_handle,
None, None,
...@@ -1252,7 +1252,7 @@ pub fn build_full( ...@@ -1252,7 +1252,7 @@ pub fn build_full(
config, config,
is_collator, is_collator,
grandpa_pause, grandpa_pause,
disable_beefy, enable_beefy,
jaeger_agent, jaeger_agent,
telemetry_worker_handle, telemetry_worker_handle,
None, None,
...@@ -1267,7 +1267,7 @@ pub fn build_full( ...@@ -1267,7 +1267,7 @@ pub fn build_full(
config, config,
is_collator, is_collator,
grandpa_pause, grandpa_pause,
disable_beefy, enable_beefy,
jaeger_agent, jaeger_agent,
telemetry_worker_handle, telemetry_worker_handle,
None, None,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment