Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
dba4f1af
Unverified
Commit
dba4f1af
authored
Nov 18, 2021
by
André Silva
Committed by
GitHub
Nov 18, 2021
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cli/src/cli.rs
View file @
dba4f1af
...
...
@@ -101,9 +101,9 @@ pub struct RunCmd {
#[structopt(long
=
"grandpa-pause"
,
number_of_values(
2
))]
pub
grandpa_pause
:
Vec
<
u32
>
,
///
Disabl
e BEEFY gadget.
///
Enable th
e BEEFY gadget
(only on Rococo or Wococo for now)
.
#[structopt(long)]
pub
no_
beefy
:
bool
,
pub
beefy
:
bool
,
/// Add the destination address to the jaeger agent.
///
...
...
cli/src/command.rs
View file @
dba4f1af
...
...
@@ -254,7 +254,7 @@ fn run_node_inner(cli: Cli, overseer_gen: impl service::OverseerGen) -> Result<(
config
,
service
::
IsCollator
::
No
,
grandpa_pause
,
cli
.run.
no_
beefy
,
cli
.run.beefy
,
jaeger_agent
,
None
,
overseer_gen
,
...
...
node/service/src/lib.rs
View file @
dba4f1af
...
...
@@ -669,7 +669,7 @@ pub fn new_full<RuntimeApi, ExecutorDispatch, OverseerGenerator>(
mut
config
:
Configuration
,
is_collator
:
IsCollator
,
grandpa_pause
:
Option
<
(
u32
,
u32
)
>
,
dis
able_beefy
:
bool
,
en
able_beefy
:
bool
,
jaeger_agent
:
Option
<
std
::
net
::
SocketAddr
>
,
telemetry_worker_handle
:
Option
<
TelemetryWorkerHandle
>
,
program_path
:
Option
<
std
::
path
::
PathBuf
>
,
...
...
@@ -1053,7 +1053,7 @@ where
if
role
.is_authority
()
{
Some
(
keystore_container
.sync_keystore
())
}
else
{
None
};
// We currently only run the BEEFY gadget on the Rococo and Wococo testnets.
if
!
dis
able_beefy
&&
(
chain_spec
.is_rococo
()
||
chain_spec
.is_wococo
())
{
if
en
able_beefy
&&
(
chain_spec
.is_rococo
()
||
chain_spec
.is_wococo
())
{
let
beefy_params
=
beefy_gadget
::
BeefyParams
{
client
:
client
.clone
(),
backend
:
backend
.clone
(),
...
...
@@ -1211,7 +1211,7 @@ pub fn build_full(
config
:
Configuration
,
is_collator
:
IsCollator
,
grandpa_pause
:
Option
<
(
u32
,
u32
)
>
,
dis
able_beefy
:
bool
,
en
able_beefy
:
bool
,
jaeger_agent
:
Option
<
std
::
net
::
SocketAddr
>
,
telemetry_worker_handle
:
Option
<
TelemetryWorkerHandle
>
,
overseer_gen
:
impl
OverseerGen
,
...
...
@@ -1222,7 +1222,7 @@ pub fn build_full(
config
,
is_collator
,
grandpa_pause
,
dis
able_beefy
,
en
able_beefy
,
jaeger_agent
,
telemetry_worker_handle
,
None
,
...
...
@@ -1237,7 +1237,7 @@ pub fn build_full(
config
,
is_collator
,
grandpa_pause
,
dis
able_beefy
,
en
able_beefy
,
jaeger_agent
,
telemetry_worker_handle
,
None
,
...
...
@@ -1252,7 +1252,7 @@ pub fn build_full(
config
,
is_collator
,
grandpa_pause
,
dis
able_beefy
,
en
able_beefy
,
jaeger_agent
,
telemetry_worker_handle
,
None
,
...
...
@@ -1267,7 +1267,7 @@ pub fn build_full(
config
,
is_collator
,
grandpa_pause
,
dis
able_beefy
,
en
able_beefy
,
jaeger_agent
,
telemetry_worker_handle
,
None
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment