Function holochain::core::workflow::sys_validation_workflow::sys_validate_record
source · pub async fn sys_validate_record(
record: &Record,
cascade: Arc<impl Cascade + Send + Sync>
) -> SysValidationOutcome<()>
Expand description
Run system validation for a single Record
instead of the usual DhtOp
input for the system validation workflow.
It is expected that the provided cascade will include a network so that dependencies which we either do not hold yet, or
should not hold, can be fetched and cached for use in validation.
Note that the conditions on the action being validated are slightly stronger than the usual system validation workflow. This is because it is intended to be used for validation of records which have been authored locally so we should always be able to check the previous action.