File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 18
18
- Fix messages were not forwarded to floodsub peers.
19
19
See [ PR 5908] ( https://github.com/libp2p/rust-libp2p/pull/5908 )
20
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
+
21
24
## 0.48.0
22
25
23
26
- Allow broadcasting ` IDONTWANT ` messages when publishing to avoid downloading data that is already available.
Original file line number Diff line number Diff line change @@ -717,6 +717,7 @@ where
717
717
// Floodsub peers
718
718
for ( peer, connections) in & self . connected_peers {
719
719
if connections. kind == PeerKind :: Floodsub
720
+ && connections. topics . contains ( & topic_hash)
720
721
&& !self
721
722
. score_below_threshold ( peer, |ts| ts. publish_threshold )
722
723
. 0
You can’t perform that action at this time.
0 commit comments