Merge branch 'fix/885-Update-default-Bind-address' of https://github.com/yashksaini-coder/py-libp2p into fix/885-Update-default-Bind-address

This commit is contained in:
yashksaini-coder
2025-09-22 21:52:51 +05:30

View File

@ -308,7 +308,8 @@ class GossipSub(IPubsubRouter, Service):
floodsub_peers: set[ID] = {
peer_id
for peer_id in self.pubsub.peer_topics[topic]
if self.peer_protocol[peer_id] == floodsub.PROTOCOL_ID
if peer_id in self.peer_protocol
and self.peer_protocol[peer_id] == floodsub.PROTOCOL_ID
}
send_to.update(floodsub_peers)