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
origin
is signed (authenticated) and retrieves themember
account. - 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_online
to check if the member is already online.- If not online, calls
Self::member_online
to 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
.