Skip to content

Commit 93c2d50

Browse files
paschal533parth-soni07
authored andcommitted
fix: GossipSub peer propagation to include FloodSub peers
1 parent 721da93 commit 93c2d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libp2p/pubsub/gossipsub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def _get_peers_to_send(
308308
floodsub_peers: set[ID] = {
309309
peer_id
310310
for peer_id in self.pubsub.peer_topics[topic]
311-
if self.peer_protocol[peer_id] == floodsub.PROTOCOL_ID
311+
if peer_id in self.peer_protocol and self.peer_protocol[peer_id] == floodsub.PROTOCOL_ID
312312
}
313313
send_to.update(floodsub_peers)
314314

0 commit comments

Comments
 (0)