Dump chain to JSON file

This commit is contained in:
Paul Hauner
2019-01-26 08:25:56 +11:00
parent 90ae2298ab
commit eb77fb75b7
4 changed files with 15 additions and 1 deletions

View File

@@ -15,4 +15,6 @@ fn it_can_produce_blocks() {
let dump = rig.chain_dump().expect("Chain dump failed.");
assert_eq!(dump.len(), blocks + 1); // + 1 for genesis block.
rig.dump_to_file("/tmp/chaindump.json".to_string(), &dump);
}