Skip to main content

verify_trace_file

Function verify_trace_file 

Source
pub fn verify_trace_file(
    path: &str,
    fanout: u32,
    nodes: Option<u32>,
) -> Result<String>
Expand description

Verify a trace relayed peer-to-peer and return the topology summary as JSON — the same {"nodes", "rounds", "relay_depth", "relayed_nodes"} the harness’s verify_cascade_relay produced. Every failure — unreadable file, malformed line, truncated stream, star-shaped tree, wrong fleet size — exits non-zero with a specific diagnostic.