Unverified Commit e3a7c507 authored by André Silva's avatar André Silva Committed by GitHub
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
......@@ -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();
......
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