From af40c368735d7f91ce5e4cc33b725daa73f93f6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Tue, 23 Jul 2019 10:51:00 +0200 Subject: [PATCH] Export `VOTER_SET_SIZE` and `APPROVAL_SET_SIZE` in srml elections (#3173) * Export `VOTER_SET_SIZE` and `APPROVAL_SET_SIZE` in srml elections * Fix compilation --- substrate/srml/elections/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/substrate/srml/elections/src/lib.rs b/substrate/srml/elections/src/lib.rs index 0f2bf3df12..9960ef22b7 100644 --- a/substrate/srml/elections/src/lib.rs +++ b/substrate/srml/elections/src/lib.rs @@ -300,6 +300,11 @@ decl_module! { /// approval voting). A reasonable default value is 24. const DecayRatio: u32 = T::DecayRatio::get(); + /// The chunk size of the voter vector. + const VOTER_SET_SIZE: u32 = VOTER_SET_SIZE as u32; + /// The chunk size of the approval vector. + const APPROVAL_SET_SIZE: u32 = APPROVAL_SET_SIZE as u32; + fn deposit_event() = default; /// Set candidate approvals. Approval slots stay valid as long as candidates in those slots