Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Companion PR for Substrate #7186 #1816

Merged
10 commits merged into from
Nov 11, 2020
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" }
sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" }
Expand Down
8 changes: 8 additions & 0 deletions node/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,13 @@ pub fn new_full<RuntimeApi, Executor>(
let can_author_with =
consensus_common::CanAuthorWithNativeVersion::new(client.executor().clone());

// JON: where can we keep these constants?
let backoff_authoring_blocks = Some(sc_consensus_slots::SimpleBackoffAuthoringBlocksStrategy {
max_interval: 100,
unfinalized_slack: 5,
authoring_bias: 2,
});
octol marked this conversation as resolved.
Show resolved Hide resolved

let proposer = ProposerFactory::new(
client.clone(),
transaction_pool,
Expand All @@ -458,6 +465,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,
};
Expand Down