pub fn send_heartbeat<T: Config>()Expand description
send_heartbeat: Updates the last heartbeat time for a member.
§Flow
- Receives
origin(caller’s account). - Ensures the
originis signed (authenticated) and retrieves thememberaccount. - Checks if the member is registered ([
MemberNetwork::<T>::get(&member)]). - Updates the
Heartbeat::<T>storage for the member. - Emits
Event::HeartbeatReceived. - Calls
Self::is_member_onlineto check if the member is already online.- If not online, calls
Self::member_onlineto mark them as online.
- If not online, calls
- 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.