Skip to content

Commit faf5c6e

Browse files
nit
1 parent dc88456 commit faf5c6e

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

consensus/src/marshal/coding/variant.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,8 @@ where
9999
self.prune(commitment).await;
100100
}
101101

102-
async fn send(&self, round: Round, block: CodedBlock<B, C, H>, recipients: Recipients<P>) {
103-
// Only disseminate on the initial broadcast. Targeted forwarding is
104-
// unsupported in the coding variant; peers reconstruct blocks from
105-
// erasure-coded shards.
106-
if matches!(recipients, Recipients::All) {
107-
self.proposed(round, block).await;
108-
}
102+
async fn send(&self, round: Round, block: CodedBlock<B, C, H>, _recipients: Recipients<P>) {
103+
// Targeted forwarding is not supported by the coding variant.
104+
self.proposed(round, block).await;
109105
}
110106
}

0 commit comments

Comments
 (0)