We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21dd467 + a01811a commit 26b6e11Copy full SHA for 26b6e11
libp2p/pubsub/gossipsub.py
@@ -308,7 +308,8 @@ def _get_peers_to_send(
308
floodsub_peers: set[ID] = {
309
peer_id
310
for peer_id in self.pubsub.peer_topics[topic]
311
- if self.peer_protocol[peer_id] == floodsub.PROTOCOL_ID
+ if peer_id in self.peer_protocol
312
+ and self.peer_protocol[peer_id] == floodsub.PROTOCOL_ID
313
}
314
send_to.update(floodsub_peers)
315
0 commit comments