Function holochain::core::check_and_hold_register_agent_activity
source · [−]pub async fn check_and_hold_register_agent_activity<F>(
hash: &HeaderHash,
workspace: &SysValidationWorkspace,
network: HolochainP2pDna,
incoming_dht_ops_sender: Option<IncomingDhtOpSender>,
f: F
) -> Result<(), SysValidationError> where
F: FnOnce(&Element) -> Result<(), SysValidationError>,
Expand description
If we are not holding this header then retrieve it and send it as a RegisterAgentActivity DhtOp to our incoming_dht_ops_workflow.
Apply a checks callback to the Element.
Additionally sys validation will be triggered to run again if we weren’t holding it.