-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Let's consider a simple network with 3 peers {A, B, C}, with 2 connections established A<->B and B<->C
In this scenario, if A subscribes to a given topic and C publishes messages to that topic, A should be able to receive the messages.
It seems to me that https://github.com/ChainSafe/js-libp2p-gossipsub/blob/v0.8.0/ts/index.ts#L1034 this should not break here, otherwise we will not grab fanout peers. However, this does not seem to fix the issue, as I tried to do a small hacking in the code but messages were not sent to the peer.
Other than that, should we make canRelayMessage
options to be true by default? I would expect the default behaviour to relay messages, but users might turn that off if they like.
Test scenario to test: libp2p/js-libp2p-interfaces#83 (use this branch as a dep)
@wemeetagain any ideas on what is wrong here?
cc @Gozala