diff --git a/flexidag/src/blockdag.rs b/flexidag/src/blockdag.rs index 054f01af07..1503215753 100644 --- a/flexidag/src/blockdag.rs +++ b/flexidag/src/blockdag.rs @@ -218,18 +218,19 @@ impl BlockDAG { ); let reachability_store = self.storage.reachability_store.clone(); - let mut merge_set = ghostdata - .unordered_mergeset_without_selected_parent() - .filter(|hash| self.storage.reachability_store.read().has(*hash).unwrap()) - .collect::>() - .into_iter(); + // let mut merge_set = ghostdata + // .unordered_mergeset_without_selected_parent() + // .filter(|hash| self.storage.reachability_store.read().has(*hash).unwrap()) + // .collect::>() + // .into_iter(); + let merge_set = header.parents(); let add_block_result = { let mut reachability_writer = reachability_store.write(); inquirer::add_block( reachability_writer.deref_mut(), header.id(), ghostdata.selected_parent, - &mut merge_set, + &mut merge_set.into_iter(), ) }; match add_block_result {