referrerpolicy=no-referrer-when-downgrade
pub fn clean_defunct_voters<T: Config>(num_voters: u32, num_defunct: u32)
Expand description

Clean all voters who are defunct (i.e. they do not serve any purpose at all). The deposit of the removed voters are returned.

This is an root function to be used only for cleaning the state.

The dispatch origin of this call must be root.

§Complexity

  • Check is_defunct_voter() details.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::clean_defunct_voters.