Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit f5067f1

Browse files
authored
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
1 parent a626ba7 commit f5067f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

srml/elections/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ decl_module! {
300300
/// approval voting). A reasonable default value is 24.
301301
const DecayRatio: u32 = T::DecayRatio::get();
302302

303+
/// The chunk size of the voter vector.
304+
const VOTER_SET_SIZE: u32 = VOTER_SET_SIZE as u32;
305+
/// The chunk size of the approval vector.
306+
const APPROVAL_SET_SIZE: u32 = APPROVAL_SET_SIZE as u32;
307+
303308
fn deposit_event<T>() = default;
304309

305310
/// Set candidate approvals. Approval slots stay valid as long as candidates in those slots

0 commit comments

Comments
 (0)