Companion PR for Substrate #7186 (#1816)

* babe: backoff authoring blocks when finality lags

* service: use default constructor for backoff authoring strat

* slots: update to use renamed backoff strategy name

* "Update Substrate"

Co-authored-by: parity-processbot <>
This commit is contained in:
Jon Häggblad
2020-11-11 14:49:15 +01:00
committed by GitHub
parent 23f05fdcf1
commit 4b0829975e
3 changed files with 142 additions and 136 deletions
+138 -136
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -14,6 +14,7 @@ sc-chain-spec = { git = "https://github.com/paritytech/substrate", branch = "mas
sc-client-api = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-client-db = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-consensus = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-consensus-slots = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-executor = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-transaction-pool = { git = "https://github.com/paritytech/substrate", branch = "master" }
+3
View File
@@ -489,6 +489,8 @@ 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::default());
let disable_grandpa = config.disable_grandpa;
let name = config.network.node_name.clone();
@@ -661,6 +663,7 @@ pub fn new_full<RuntimeApi, Executor>(
sync_oracle: network.clone(),
inherent_data_providers: inherent_data_providers.clone(),
force_authoring,
backoff_authoring_blocks,
babe_link,
can_author_with,
};