Skip to content
Snippets Groups Projects

[fix] bc-dal: fork tree must be resistant to light data corruption

Merged Éloïs requested to merge elois/fix-p0 into dev
2 files
+ 34
20
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -178,8 +178,17 @@ pub fn dbex_fork_tree(profile_path: PathBuf, _csv: bool) {
.read(|fork_tree| fork_tree.clone())
.expect("Fail to read fork tree DB !");
// Print all sheets
println!("-----------------------------------");
println!("sheets={:?}", fork_tree.get_sheets());
println!("-----------------------------------");
// Print all fork branches
for (tree_node_id, blockstamp) in fork_tree.get_sheets() {
debug!(
"fork_tree.get_fork_branch({:?}, {})",
tree_node_id, blockstamp
);
let branch = fork_tree.get_fork_branch(tree_node_id);
if !branch.is_empty() {
println!("Fork branch #{}:", blockstamp);
Loading