Skip to content
Snippets Groups Projects
Commit af40c368 authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

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
parent f78a7807
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment