Skip to main content

chain_after

Function chain_after 

Source
pub fn chain_after(
    records: &[ProvenanceRecord],
    head: Option<Hash32>,
) -> &[ProvenanceRecord]
Expand description

The records of records (a chain, oldest first) the server lacks when it holds head: those after it, which is none when head already is the last; or the last record alone when head is unknown or not in the chain, which the server judges (a stale chain is refused, never applied).