Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin-Radecki committed Dec 16, 2024
1 parent 6ab0ddb commit 1a5dcf8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion consensus/src/dag/reconstruction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl<U: Unit> UnitWithParents for ReconstructedUnit<U> {
.filter_map(|(hash, parent_round)| match self.unit.coord().round() {
// round 0 units cannot have non-empty parents
0 => None,

unit_round => {
if unit_round - 1 == *parent_round {
Some(hash)
Expand Down
2 changes: 1 addition & 1 deletion consensus/src/extension/election.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl<U: UnitWithParents> CandidateElection<U> {
_ => {
let threshold = voter.node_count().consensus_threshold();
self.vote_from_parents(direct_parents, threshold, relative_round)?
},
}
};
self.votes.insert(voter.hash(), vote);
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion consensus/src/testing/dag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl DagFeeder {
.parent_hashes()
.into_iter()
.collect();

assert_eq!(parents.into_iter().collect::<HashSet<_>>(), expected_hashes);
self.result.push(unit.clone());
self.store.insert(unit);
Expand Down

0 comments on commit 1a5dcf8

Please sign in to comment.