pallet_members::pallet::dispatchables

Function send_heartbeat

Source
pub fn send_heartbeat<T: Config>()
Expand description

send_heartbeat: Updates the last heartbeat time for a member.

§Flow

  1. Receives origin (caller’s account).
  2. Ensures the origin is signed (authenticated) and retrieves the member account.
  3. Checks if the member is registered ([MemberNetwork::<T>::get(&member)]).
  4. Updates the Heartbeat::<T> storage for the member.
  5. Emits Event::HeartbeatReceived.
  6. Calls Self::is_member_online to check if the member is already online.
    1. If not online, calls Self::member_online to mark them as online.
  7. 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::send_heartbeat.