Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
e3a7c507
Unverified
Commit
e3a7c507
authored
Mar 12, 2021
by
André Silva
Committed by
GitHub
Mar 12, 2021
Browse files
node: decrease block production backoff max interval on rococo (#2614)
parent
f4774a5d
Pipeline
#128137
passed with stages
in 30 minutes and 49 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
node/service/src/lib.rs
View file @
e3a7c507
...
...
@@ -615,12 +615,22 @@ pub fn new_full<RuntimeApi, Executor>(
let
role
=
config
.role
.clone
();
let
force_authoring
=
config
.force_authoring
;
let
backoff_authoring_blocks
=
Some
(
sc_consensus_slots
::
BackoffAuthoringOnFinalizedHeadLagging
{
let
backoff_authoring_blocks
=
{
let
mut
backoff
=
sc_consensus_slots
::
BackoffAuthoringOnFinalizedHeadLagging
{
#[cfg(feature
=
"real-overseer"
)]
unfinalized_slack
:
100
,
..
Default
::
default
()
});
};
if
config
.chain_spec
.is_rococo
()
{
// it's a testnet that's in flux, finality has stalled sometimes due
// to operational issues and it's annoying to slow down block
// production to 1 block per hour.
backoff
.max_interval
=
10
;
}
Some
(
backoff
)
};
let
disable_grandpa
=
config
.disable_grandpa
;
let
name
=
config
.network.node_name
.clone
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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