Skip to main content

previous_unfinished

Function previous_unfinished 

Source
fn previous_unfinished<N: Network>(
    snapshot: &Path,
    paths: &(PathBuf, PathBuf),
    multi: bool,
) -> Result<bool>
where N::TxEnvelope: for<'de> Deserialize<'de> + Serialize,
Expand description

Returns whether the previous execution at paths submitted anything and left an operation, on any chain, with neither a receipt nor a recorded revert. Without a recovery snapshot, progress saved before snapshots existed is read from the broadcast export. An unreadable snapshot counts as unfinished, as resume would refuse it too.

Errors when a broadcast export written with a snapshot has such an operation but the snapshot is missing, for example in a checkout without cache/: only the snapshot records submission attempts, so the export cannot show a submission whose response was lost. Without a snapshot, an existing but unreadable export of a non-dry run errors too, as it cannot show anything.