Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin-Radecki committed Jan 3, 2025
1 parent 45dd088 commit 888049a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion consensus/src/dag/reconstruction/dag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ mod test {
Hasher, NodeCount, NodeIndex, NodeMap,
};
use aleph_bft_mock::Hasher64;
use std::collections::HashSet;
use aleph_bft_types::Round;
use std::collections::HashSet;

fn full_parents_to_map(
parents: Vec<<Hasher64 as Hasher>::Hash>,
Expand Down
7 changes: 1 addition & 6 deletions consensus/src/dag/reconstruction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@ impl<U: Unit> ReconstructedUnit<U> {
match unit.control_hash().combined_hash
== ControlHash::<U::Hasher>::combine_hashes(&parents)
{
true => {
Ok(ReconstructedUnit {
unit,
parents,
})
}
true => Ok(ReconstructedUnit { unit, parents }),
false => Err(unit),
}
}
Expand Down
2 changes: 1 addition & 1 deletion consensus/src/dag/reconstruction/parents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use crate::{
units::{ControlHash, HashFor, Unit, UnitCoord},
NodeIndex, NodeMap,
};
use std::collections::{hash_map::Entry, HashMap};
use aleph_bft_types::Round;
use std::collections::{hash_map::Entry, HashMap};

/// A unit in the process of reconstructing its parents.
#[derive(Debug, PartialEq, Eq, Clone)]
Expand Down

0 comments on commit 888049a

Please sign in to comment.