Expand description
Functions§
- add_
invulnerable - Add a new account
whoto the list ofInvulnerablescollators.whomust have registered session keys. Ifwhois a candidate, they will be removed. - leave_
intent - Deregister
originas a collator candidate. Note that the collator can only leave on session change. TheCandidacyBondwill 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
whofrom the list ofInvulnerablescollators.Invulnerablesmust 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
originreplaces a candidatetargetin the collator candidate list by reservingdeposit. The amountdepositreserved 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
originto a new amountnew_deposit.