mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 20:15:40 +00:00
grandpa: add voting rule to pause new votes for a period (#904)
* grandpa: add voting rule to pause new votes for a period * grandpa: increase delay * grandpa: parse custom pause delay from cli * grandpa: log scheduled pause on startup * grandpa: rename parameter to grandpa_pause * grandpa: make pause voting rule generic on block * grandpa: add test for pause voting rule * grandpa: add hardcoded pause * collator: fix test compilation
This commit is contained in:
@@ -349,14 +349,14 @@ where
|
||||
).into(),
|
||||
(true, _) =>
|
||||
build_collator_service(
|
||||
service::kusama_new_full(config, Some((key.public(), para_id)), None, false, 6000)?,
|
||||
service::kusama_new_full(config, Some((key.public(), para_id)), None, false, 6000, None)?,
|
||||
para_id,
|
||||
key,
|
||||
build_parachain_context,
|
||||
)?.await,
|
||||
(false, _) =>
|
||||
build_collator_service(
|
||||
service::polkadot_new_full(config, Some((key.public(), para_id)), None, false, 6000)?,
|
||||
service::polkadot_new_full(config, Some((key.public(), para_id)), None, false, 6000, None)?,
|
||||
para_id,
|
||||
key,
|
||||
build_parachain_context,
|
||||
@@ -395,7 +395,7 @@ pub fn run_collator<P>(
|
||||
(true, _) =>
|
||||
sc_cli::run_service_until_exit(config, |config| {
|
||||
build_collator_service(
|
||||
service::kusama_new_full(config, Some((key.public(), para_id)), None, false, 6000)?,
|
||||
service::kusama_new_full(config, Some((key.public(), para_id)), None, false, 6000, None)?,
|
||||
para_id,
|
||||
key,
|
||||
build_parachain_context,
|
||||
@@ -404,7 +404,7 @@ pub fn run_collator<P>(
|
||||
(false, _) =>
|
||||
sc_cli::run_service_until_exit(config, |config| {
|
||||
build_collator_service(
|
||||
service::polkadot_new_full(config, Some((key.public(), para_id)), None, false, 6000)?,
|
||||
service::polkadot_new_full(config, Some((key.public(), para_id)), None, false, 6000, None)?,
|
||||
para_id,
|
||||
key,
|
||||
build_parachain_context,
|
||||
|
||||
Reference in New Issue
Block a user