mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 15:11:02 +00:00
node: decrease block production backoff max interval on rococo (#2614)
This commit is contained in:
@@ -615,12 +615,22 @@ pub fn new_full<RuntimeApi, Executor>(
|
|||||||
|
|
||||||
let role = config.role.clone();
|
let role = config.role.clone();
|
||||||
let force_authoring = config.force_authoring;
|
let force_authoring = config.force_authoring;
|
||||||
let backoff_authoring_blocks =
|
let backoff_authoring_blocks = {
|
||||||
Some(sc_consensus_slots::BackoffAuthoringOnFinalizedHeadLagging {
|
let mut backoff = sc_consensus_slots::BackoffAuthoringOnFinalizedHeadLagging {
|
||||||
#[cfg(feature = "real-overseer")]
|
#[cfg(feature = "real-overseer")]
|
||||||
unfinalized_slack: 100,
|
unfinalized_slack: 100,
|
||||||
..Default::default()
|
..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 disable_grandpa = config.disable_grandpa;
|
||||||
let name = config.network.node_name.clone();
|
let name = config.network.node_name.clone();
|
||||||
|
|||||||
Reference in New Issue
Block a user