Replies: 1 comment 5 replies
-
This seems like a bug to me. Is the
I don't think subscriptions are intended to be gossiped. In other words, I don't think subscription events go further than one hop.
Are you able to create a small reproducer or even better write a small test that fails? See https://github.com/libp2p/rust-libp2p/blob/master/protocols/gossipsub/tests/smoke.rs on how to write a gossipsub test. |
Beta Was this translation helpful? Give feedback.
-
I'm running three nodes, let's call them
bootnode
,subscriber
, andpublisher
. They use the following network behaviours: identify, kademlia, and gossipsub. Bothsubscriber
andpublisher
connect to thebootnode
and do a kademlia bootstrap.Then,
subscriber
subscribes to a gossipsub topic, andpublisher
starts publishing some messages on this topic. The problem is that messages are delivered only ifsubscriber
is started afterpublisher
. So it seems as if existing subscriptions are not propagated to a new node joining the network. Is this an expected behaviour or a bug? What could be a workaround for this?Beta Was this translation helpful? Give feedback.
All reactions