Skip to content

Commit ffbf955

Browse files
committed
feat(p2p/meshsub): broadcast our block to all peers regardless of the mesh state
1 parent 54c4d47 commit ffbf955

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

p2p/src/network/pubsub/p2p_network_pubsub_reducer.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,8 @@ impl P2pNetworkPubsubState {
236236
P2pNetworkPubsubAction::BroadcastSigned { signature } => {
237237
if let Some(mut message) = self.to_sign.pop_front() {
238238
message.signature = Some(signature.clone().0.to_vec());
239-
let topic = self.topics.entry(message.topic.clone()).or_default();
240239
self.clients
241240
.iter_mut()
242-
.filter(|(c, _)| {
243-
topic
244-
.get(c)
245-
.map_or(false, P2pNetworkPubsubClientTopicState::on_mesh)
246-
})
247241
.for_each(|(_, state)| state.message.publish.push(message.clone()));
248242
}
249243
}

0 commit comments

Comments
 (0)