Function pallet_elections_phragmen::pallet::dispatchables::remove_member
source · pub fn remove_member<T: Config>(
who: <<T as Config>::Lookup as StaticLookup>::Source,
slash_bond: bool,
rerun_election: bool,
)
Expand description
Remove a particular member from the set. This is effective immediately and the bond of the outgoing member is slashed.
If a runner-up is available, then the best runner-up will be removed and replaces the
outgoing member. Otherwise, if rerun_election
is true
, a new phragmen election is
started, else, nothing happens.
If slash_bond
is set to true, the bond of the member being removed is slashed. Else,
it is returned.
The dispatch origin of this call must be root.
Note that this does not affect the designated block number of the next election.
§Complexity
- Check details of remove_and_replace_member() and do_phragmen().
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::remove_member
.