pub fn compile_graph_substitute_snapshot_wasm_bytes(
ordered_nodes: &[LedgerNode],
snapshot: &GraphWasmSubstituteSnapshot,
) -> Result<Option<Vec<u8>>>Expand description
Lowers and assembles the uninstrumented canonical .wasm bytes for a
discovered ctb_formats_dcdata::seed_graph::GraphWasmSubstituteSnapshot
reconstructed at snapshot.pin_node_id from an ordered LedgerNode slice.
If snapshot.is_head is false and a superseded/retracted historical draft
fails compilation, logs a warning and returns Ok(None) rather than failing
the entire substitute bundle.
ยงErrors
Returns an error if snapshot.is_head fails compilation or if reconstructing
the base resolver fails.