Skip to main content

recover_pair

Function recover_pair 

Source
pub fn recover_pair(
    stream: &[u8],
    intents: &mut IntentTable,
    receipts: &mut ReceiptTable,
    ops: &mut OpTable,
    desc: &OperationDesc,
    effect_digest: StrongDigest,
) -> Result<DurablePairing, QdnfError>
Expand description

Rebuild receipt class from a CORE-03 marker stream.

Uses IntentTable::recover_into. Committed marker + matching effect digest → re-apply durable. Aborted or incomplete → not durable.

Recovered markers do not carry writer id or generation (encode_marker does not encode them). Restaging into intents uses writer 0 and Generation::ZERO. ops cannot be rebuilt from the marker stream (no OperationDesc on the wire).