Fix:
Respond GRAFT with PRUNE if not subscribed to the topic
This commit is contained in:
parent
84824fd566
commit
e52bfe3a51
|
@ -462,7 +462,8 @@ class GossipSub(IPubsubRouter):
|
|||
if topic in self.mesh:
|
||||
self.mesh[topic].append(from_id_str)
|
||||
else:
|
||||
self.mesh[topic] = [from_id_str]
|
||||
# Respond with PRUNE if not subscribed to the topic
|
||||
await self.emit_prune(topic, sender_peer_id)
|
||||
|
||||
async def handle_prune(self, prune_msg, sender_peer_id):
|
||||
topic = prune_msg.topicID
|
||||
|
|
Loading…
Reference in New Issue
Block a user