diff --git a/flexidag/src/blockdag.rs b/flexidag/src/blockdag.rs index cc5ea909b7..570c3c944f 100644 --- a/flexidag/src/blockdag.rs +++ b/flexidag/src/blockdag.rs @@ -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> = None; let mut bad_reds = Vec::new(); diff --git a/sync/src/block_connector/block_connector_service.rs b/sync/src/block_connector/block_connector_service.rs index d35b864372..f82a07ef83 100644 --- a/sync/src/block_connector/block_connector_service.rs +++ b/sync/src/block_connector/block_connector_service.rs @@ -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();