Skip to main content

save_ledger

Function save_ledger 

Source
fn save_ledger(shared_dir: &Path, ledger: &Ledger)
Expand description

Write the ledger. Several channels share one machine now, so two boots can run at once: the file on disk is read again and merged first (keys only ever get added, so a union loses nothing another boot recorded), and the temp file is unique so two writers never interleave in one file.