fn dump_application_to_file(
staged_ledger: &StagedLedger,
block: ArcBlockWithHash,
pred_block: AppliedBlock,
) -> Result<String>
Expand description
Save staged ledger and block to file, when the application fail. So we can easily reproduce the application both in Rust and OCaml, to compare them.
- https://github.com/openmina/openmina/blob/8e68037aafddd43842a54c8439baeafee4c6e1eb/ledger/src/staged_ledger/staged_ledger.rs#L5959
- TODO: Find OCaml link, I remember having the same test in OCaml but I can’t find where