We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cad83b9 commit 73b4233Copy full SHA for 73b4233
consensus/src/units/testing.rs
@@ -241,7 +241,7 @@ pub fn minimal_reconstructed_dag_units_up_to(
241
.clone();
242
let inactive_node = inactive_node_first_and_last_seen_unit.creator();
243
for r in 1..=round {
244
- let direct_parents: Vec<TestingDagUnit> = dag
+ let mut parents: Vec<TestingDagUnit> = dag
245
.last()
246
.expect("previous round present")
247
.clone()
@@ -250,7 +250,6 @@ pub fn minimal_reconstructed_dag_units_up_to(
250
.choose_multiple(&mut rng, threshold)
251
.into_iter()
252
.collect();
253
- let mut parents = direct_parents.clone();
254
if r == round {
255
let ancestor_unit = dag
256
.first()
0 commit comments