Hard time trying to understand how to make gossipsub work without autodial #3090
Unanswered
pcontezini
asked this question in
Q&A
Replies: 1 comment
-
Also had this issue when moving to 2.0 Few things to check
Clients
These might help you get started |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having a problem understanding how libp2p is supposed to work without the auto-dial function after the upgrade to 2.0.
I'm using GossipSub to share changes on my network. Previously, I would start the node with a few bootstrap addresses, and the bootstrap node would provide the addresses of the other nodes on the network. The auto-dial function would then dial the newly discovered nodes and establish the connection to share gossipsub messages.
Now on 2.0, it works the first time (even through mdns), the first time the node is discovered on the network, libp2p successfully dials it, and the gossipsub messages are transmitted correctly. However, the problem is that on the second run, after the peerStore is stored in the datastore and restored, the discovery event is never triggered anymore. The nodes can't exchange gossip messages because the auto-dial doesn't restore those connections as it used to do.
I'm sure you guys have considered this scenario, but I can't find any documents or examples about it.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions