pub fn unregister_member<T: Config>(member: AccountId)Expand description
unregister_member: Unregisters a member from the network.
§Flow
- Receives
origin(caller’s account). - Ensures the
originis signed (authenticated) and retrieves thememberaccount. - Retrieves the current
networkof the member ([MemberNetwork::<T>::take(&member)]). - Calls
Self::unregister_member_from_networkto perform the actual unregistration tasks: - Removes data from storage (
MemberPeerId::<T>,Heartbeat::<T>,MemberOnline::<T>). - Emits
Event::UnRegisteredMember. - Calls
Self::member_offlineto mark the member as offline and calculate weight adjustments. - Returns
Ok(())if successful.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::unregister_member.