Function pallet_ranked_collective::pallet::dispatchables::cleanup_poll
source · pub fn cleanup_poll<T: Config<I>, I: 'static>(
poll_index: PollIndexOf<T, I>,
max: u32,
)
Expand description
Remove votes from the given poll. It must have ended.
origin
: Must beSigned
by any account.poll_index
: Index of a poll which is completed and for which votes continue to exist.max
: Maximum number of vote items from remove in this call.
Transaction fees are waived if the operation is successful.
Weight O(max)
(less if there are fewer items to remove than max
).
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::cleanup_poll
.