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