Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Oct 17, 2024
1 parent 16b20f8 commit 9676a7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions flexidag/src/blockdag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ impl BlockDAG {
if merge_depth_root == Hash::zero() {
return anyhow::Ok((parents, ghostdata));
}
info!("merge depth root: {:?}", merge_depth_root);
let mut kosherizing_blues: Option<Vec<Hash>> = None;
let mut bad_reds = Vec::new();

Expand Down
5 changes: 5 additions & 0 deletions sync/src/block_connector/block_connector_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,17 @@ where
bail!("failed to get the blue blocks from the DAG");
}

info!("try to remove the red blocks when mining, tips: {:?} and ghostdata: {:?}, pruning point: {:?}", tips, ghostdata, pruning_point);
(tips, ghostdata) = dag.remove_bounded_merge_breaking_parents(
tips,
ghostdata,
pruning_point,
G_MERGE_DEPTH,
)?;
info!(
"after removing the bounded merge breaking parents, tips: {:?} and ghostdata: {:?}",
tips, ghostdata
);

let selected_parent = ghostdata.selected_parent;
let time_service = self.config.net().time_service();
Expand Down

0 comments on commit 9676a7f

Please sign in to comment.