Skip to main content

reconstruct_view

Function reconstruct_view 

Source
pub async fn reconstruct_view<R: NodeReader>(
    reader: &R,
    alg_id: u64,
    hasher: Box<dyn Hasher>,
    epochs: &[(u64, u64)],
    global_size: u64,
    arity: u64,
) -> Result<AlgView, R::Error>
Expand description

Reconstruct an algorithm’s frontier view from the read substrate at global_size. The hasher and committed epochs are supplied by the combinator (which owns the timeline); the frontier peaks are read back.

§Errors

Propagates Error from the node reads, or Error::Corrupted for an ill-formed epoch sequence or a missing frontier node.