We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c08d93c + 4df989c commit 80788feCopy full SHA for 80788fe
protocols/gossipsub/CHANGELOG.md
@@ -18,6 +18,9 @@
18
- Fix messages were not forwarded to floodsub peers.
19
See [PR 5908](https://github.com/libp2p/rust-libp2p/pull/5908)
20
21
+- Fix messages were published to all floodsub peers regardless of their topic.
22
+ See [PR 5904](https://github.com/libp2p/rust-libp2p/pull/5904)
23
+
24
## 0.48.0
25
26
- Allow broadcasting `IDONTWANT` messages when publishing to avoid downloading data that is already available.
protocols/gossipsub/src/behaviour.rs
@@ -717,6 +717,7 @@ where
717
// Floodsub peers
718
for (peer, connections) in &self.connected_peers {
719
if connections.kind == PeerKind::Floodsub
720
+ && connections.topics.contains(&topic_hash)
721
&& !self
722
.score_below_threshold(peer, |ts| ts.publish_threshold)
723
.0
0 commit comments