Expand description
Functions§
- add_
invulnerable - Add a new account
who
to the list ofInvulnerables
collators.who
must have registered session keys. Ifwho
is a candidate, they will be removed. - leave_
intent - Deregister
origin
as a collator candidate. Note that the collator can only leave on session change. TheCandidacyBond
will be unreserved immediately. - register_
as_ candidate - Register this account as a collator candidate. The account must (a) already have
registered session keys and (b) be able to reserve the
CandidacyBond
. - remove_
invulnerable - Remove an account
who
from the list ofInvulnerables
collators.Invulnerables
must be sorted. - set_
candidacy_ bond - Set the candidacy bond amount.
- set_
desired_ candidates - Set the ideal number of non-invulnerable collators. If lowering this number, then the number of running collators could be higher than this figure. Aside from that edge case, there should be no other way to have more candidates than the desired number.
- set_
invulnerables - Set the list of invulnerable (fixed) collators. These collators must do some preparation, namely to have registered session keys.
- take_
candidate_ slot - The caller
origin
replaces a candidatetarget
in the collator candidate list by reservingdeposit
. The amountdeposit
reserved by the caller must be greater than the existing bond of the target it is trying to replace. - update_
bond - Update the candidacy bond of collator candidate
origin
to a new amountnew_deposit
.