pub async fn check_and_hold_store_record<F>(
    hash: &ActionHash,
    cascade: &impl Cascade,
    incoming_dht_ops_sender: Option<IncomingDhtOpSender>,
    f: F
) -> SysValidationResult<()>where
    F: FnOnce(&Record) -> SysValidationResult<()>,
Expand description

If we are not holding this action then retrieve it and send it as a StoreRecord 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.