Skip to content

Commit 73b4233

Browse files
Revered changes to unit testing code
1 parent cad83b9 commit 73b4233

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

consensus/src/units/testing.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ pub fn minimal_reconstructed_dag_units_up_to(
241241
.clone();
242242
let inactive_node = inactive_node_first_and_last_seen_unit.creator();
243243
for r in 1..=round {
244-
let direct_parents: Vec<TestingDagUnit> = dag
244+
let mut parents: Vec<TestingDagUnit> = dag
245245
.last()
246246
.expect("previous round present")
247247
.clone()
@@ -250,7 +250,6 @@ pub fn minimal_reconstructed_dag_units_up_to(
250250
.choose_multiple(&mut rng, threshold)
251251
.into_iter()
252252
.collect();
253-
let mut parents = direct_parents.clone();
254253
if r == round {
255254
let ancestor_unit = dag
256255
.first()

0 commit comments

Comments
 (0)