Function pallet_elections_phragmen::pallet::dispatchables::submit_candidacy
source · pub fn submit_candidacy<T: Config>(candidate_count: u32)
Expand description
Submit oneself for candidacy. A fixed amount of deposit is recorded.
All candidates are wiped at the end of the term. They either become a member/runner-up, or leave the system while their deposit is slashed.
The dispatch origin of this call must be signed.
§Warning
Even if a candidate ends up being a member, they must call Call::renounce_candidacy
to get their deposit back. Losing the spot in an election will always lead to a slash.
The number of current candidates must be provided as witness data.
§Complexity
O(C + log(C)) where C is candidate_count.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::submit_candidacy
.