companion for substrate#14423 (#7484)

* companion for substrate#14423

* update lockfile for {"substrate"}

* update lockfile for {"substrate"}

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
André Silva
2023-07-18 09:06:39 +01:00
committed by GitHub
parent b2bc4c1917
commit 9f760192de
2 changed files with 329 additions and 187 deletions
+323 -186
View File
File diff suppressed because it is too large Load Diff
+6 -1
View File
@@ -126,6 +126,10 @@ pub type FullClient = service::TFullClient<
WasmExecutor<(sp_io::SubstrateHostFunctions, frame_benchmarking::benchmarking::HostFunctions)>, WasmExecutor<(sp_io::SubstrateHostFunctions, frame_benchmarking::benchmarking::HostFunctions)>,
>; >;
/// The minimum period of blocks on which justifications will be
/// imported and generated.
const GRANDPA_JUSTIFICATION_PERIOD: u32 = 512;
/// Provides the header and block number for a hash. /// Provides the header and block number for a hash.
/// ///
/// Decouples `sc_client_api::Backend` and `sp_blockchain::HeaderBackend`. /// Decouples `sc_client_api::Backend` and `sp_blockchain::HeaderBackend`.
@@ -494,6 +498,7 @@ where
let (grandpa_block_import, grandpa_link) = grandpa::block_import_with_authority_set_hard_forks( let (grandpa_block_import, grandpa_link) = grandpa::block_import_with_authority_set_hard_forks(
client.clone(), client.clone(),
GRANDPA_JUSTIFICATION_PERIOD,
&(client.clone() as Arc<_>), &(client.clone() as Arc<_>),
select_chain.clone(), select_chain.clone(),
grandpa_hard_forks, grandpa_hard_forks,
@@ -1140,7 +1145,7 @@ where
// Grandpa performance can be improved a bit by tuning this parameter, see: // Grandpa performance can be improved a bit by tuning this parameter, see:
// https://github.com/paritytech/polkadot/issues/5464 // https://github.com/paritytech/polkadot/issues/5464
gossip_duration: Duration::from_millis(1000), gossip_duration: Duration::from_millis(1000),
justification_period: 512, justification_generation_period: GRANDPA_JUSTIFICATION_PERIOD,
name: Some(name), name: Some(name),
observer_enabled: false, observer_enabled: false,
keystore: keystore_opt, keystore: keystore_opt,