referrerpolicy=no-referrer-when-downgrade

remove_registrar

Function remove_registrar 

Source
pub fn remove_registrar<T: Config>(index: RegistrarIndex)
Expand description

Remove a registrar from the system.

The dispatch origin for this call must be T::RegistrarOrigin.

The registrar’s slot is tombstoned (set to None) rather than removed, so that the RegistrarIndex of every other registrar — and any judgements already recorded against them — stays stable. The freed index is not reused by add_registrar, so each removal permanently consumes one slot against MaxRegistrars (reusing the slot would let a new registrar inherit an index that historical judgements still reference).

Deposits reserved by pending request_judgement calls against this registrar are not returned; once the registrar is removed provide_judgement can no longer release them, so affected users should reclaim their funds manually with cancel_request.

  • index: the index of the registrar to remove.

Emits RegistrarRemoved if successful.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::remove_registrar.