discover_graph_wasm_substitute_snapshots

Function discover_graph_wasm_substitute_snapshots 

Source
pub fn discover_graph_wasm_substitute_snapshots(
    nodes: &[LedgerNode],
) -> Result<Vec<GraphWasmSubstituteSnapshot>>
Expand description

Discovers all runnable WebAssembly snapshots across an arbitrary slice of LedgerNodes without privileging HEAD over historical Dc 641 revisions.

Every revision closure present across code-touching batch watermarks in nodes (including superseded or retracted historical implementations as well as raw unowned Dc 1927..Dc 1928 .WASM value nodes) is discovered once and attributed via substitute_chunk_prefix_for_node_id to the .ctbnodes chunk of its defining node ID.

ยงErrors

Returns an error if nodes contains duplicate node IDs or if any target active at the final watermark of nodes fails inspection or closure hashing.