From 5b61c46e0029698fb5ddc5ccca8c165bbc57f71e Mon Sep 17 00:00:00 2001 From: brenzi Date: Wed, 18 Dec 2024 15:50:18 +0100 Subject: [PATCH] [encointer] fix missing hook for enactment of proposals (#508) The first 4 Encointer democracy proposals have been up for vote and two proposals have been approved. However, we realized that enactment did not happen. This is due to a missing hook in the runtime. This PR should fix the hook and enact the already approved after the next runtime upgrade when the cycle phase changes to "assigning" --- CHANGELOG.md | 2 ++ system-parachains/encointer/src/lib.rs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0eff501227..3847c59f19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +- Fix missing Encointer democracy pallet hook needed for enactment ([polkadot-fellows/runtimes/pull/508](https://github.com/polkadot-fellows/runtimes/pull/508)) + ### Added - Location conversion tests for relays and parachains ([polkadot-fellows/runtimes#487](https://github.com/polkadot-fellows/runtimes/pull/487)) diff --git a/system-parachains/encointer/src/lib.rs b/system-parachains/encointer/src/lib.rs index 60f1054172..942df064e0 100644 --- a/system-parachains/encointer/src/lib.rs +++ b/system-parachains/encointer/src/lib.rs @@ -483,7 +483,9 @@ parameter_types! { impl pallet_encointer_scheduler::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type OnCeremonyPhaseChange = EncointerCeremonies; + // attention!: EncointerDemocracy must be first hook as it potentially changes the rules for + // following hooks + type OnCeremonyPhaseChange = (EncointerDemocracy, EncointerCeremonies); type MomentsPerDay = MomentsPerDay; type CeremonyMaster = MoreThanHalfCouncil; type WeightInfo = weights::pallet_encointer_scheduler::WeightInfo;