diff --git a/consensus/src/dag/reconstruction/mod.rs b/consensus/src/dag/reconstruction/mod.rs index 1db709dd..2f366fce 100644 --- a/consensus/src/dag/reconstruction/mod.rs +++ b/consensus/src/dag/reconstruction/mod.rs @@ -81,11 +81,7 @@ impl From { fn from(unit: ReconstructedUnit, K>>) -> Self { - let parents = unit - .parents() - .into_iter() - .map(|(ix, hash)| (ix, *hash)) - .collect(); + let parents = unit.parents().into_iter().map(|(_, hash)| *hash).collect(); let unit = unit.unpack(); let creator = unit.creator(); let round = unit.round(); diff --git a/consensus/src/member.rs b/consensus/src/member.rs index 183843bf..21b12854 100644 --- a/consensus/src/member.rs +++ b/consensus/src/member.rs @@ -130,7 +130,7 @@ impl, US: AsyncWrite, UL: } } - pub fn new_using_unit_finalization_handler< + pub fn new_with_unit_finalization_handler< H: Hasher, UFH: FinalizationHandler>, >( diff --git a/types/src/dataio.rs b/types/src/dataio.rs index af91c7f2..c9560aba 100644 --- a/types/src/dataio.rs +++ b/types/src/dataio.rs @@ -36,7 +36,7 @@ pub trait FinalizationHandler: Sync + Send + 'static { /// which can be then used for example for the purpose of node's performance evaluation. pub struct OrderedUnit { pub data: Option, - pub parents: Vec<(NodeIndex, H::Hash)>, + pub parents: Vec, pub hash: H::Hash, pub creator: NodeIndex, pub round: Round,