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
bd065434
Unverified
Commit
bd065434
authored
Jun 20, 2021
by
Andronik Ordian
Committed by
GitHub
Jun 20, 2021
Browse files
disable approval-checking voting rule (#3321)
parent
5ce18930
Pipeline
#143390
passed with stages
in 35 minutes and 59 seconds
Changes
2
Pipelines
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Cargo.lock
View file @
bd065434
This diff is collapsed.
Click to expand it.
node/service/src/lib.rs
View file @
bd065434
...
...
@@ -888,12 +888,22 @@ pub fn new_full<RuntimeApi, Executor, OverseerGenerator>(
// after the given pause block is finalized and restarting after the
// given delay.
let
builder
=
grandpa
::
VotingRulesBuilder
::
default
();
// we should enable approval checking voting rule before we deploy parachains on polkadot
let
enable_approval_checking_voting_rule
=
chain_spec
.is_kusama
()
||
chain_spec
.is_westend
()
||
chain_spec
.is_rococo
()
||
chain_spec
.is_wococo
()
||
chain_spec
.is_dev
();
let
builder
=
if
let
Some
(
ref
overseer
)
=
overseer_handler
{
builder
.add
(
grandpa_support
::
ApprovalCheckingVotingRule
::
new
(
overseer
.clone
(),
prometheus_registry
.as_ref
(),
)
?
)
if
enable_approval_checking_voting_rule
{
builder
.add
(
grandpa_support
::
ApprovalCheckingVotingRule
::
new
(
overseer
.clone
(),
prometheus_registry
.as_ref
(),
)
?
)
}
else
{
builder
}
}
else
{
builder
};
...
...
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