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
This commit is contained in:
Bastian Köcher
2019-07-23 10:51:00 +02:00
committed by GitHub
parent f78a780790
commit af40c36873
+5
View File
@@ -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<T>() = default;
/// Set candidate approvals. Approval slots stay valid as long as candidates in those slots