pub fn write_ledger_nodes_to_dir(
graph_dir: &Path,
nodes: &[LedgerNode],
) -> Result<usize>Expand description
Writes nodes into 100-node chunk files (85899_34592.ctbnodes, …) in graph_dir
using strictly append-only file operations (O_APPEND on partial tail chunks, O_CREAT | O_EXCL
on new chunks, and no-op on unchanged full chunks). Returns the number of files written.