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.
1 parent 721da93 commit 93c2d50Copy full SHA for 93c2d50
libp2p/pubsub/gossipsub.py
@@ -308,7 +308,7 @@ 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 and self.peer_protocol[peer_id] == floodsub.PROTOCOL_ID
312
}
313
send_to.update(floodsub_peers)
314
0 commit comments