inspect_ledger_journal

Function inspect_ledger_journal 

Source
pub fn inspect_ledger_journal(journal_path: &Path) -> Result<ParsedJournal>
Expand description

Parses and validates ledger-journal.jsonl:

  • Any complete (\n-terminated) line that fails JSON parsing or verify_sha256() is rejected as hard corruption.
  • Only an unterminated final line (not ending in \n) is reported in torn_trailing_fragment.