Skip to main content

run

Function run 

Source
pub fn run(
    db_path: &Path,
    args: &VerifyChainArgs,
    out: &mut CliOutput<'_>,
) -> Result<i32>
Expand description

Run the verify-reflection-chain subcommand against the SQLite DB at db_path. Returns an exit code: 0 if the chain is intact, 2 otherwise.

v0.7.0 G-PHASE-E-4 (#709) — raised the failure exit code from 1 to 2. The previous 1 was indistinguishable from CLI argument errors / unwrap panics under shell error trapping; 2 is the conventional “verification failed” code (matches the convention raised on verify-forensic-bundle in the same fold) and aligns with the new top-line ok field in ChainReport.

§Errors

Propagates I/O or database errors via anyhow.