As said here, I don’t receive anymore messages after a node.stop() / node.start(), as shown in the following code. It works at first launch, but if I stop/start one node (by functions calls or by stoping/starting the code), messages are not sent anymore between nodes (the log in sendmessage() shows that one node is well connected to 2 peers though… but the other node is only connected to itself).
And if I disable/enable wifi on node1, node2 is not informed, and only node2 can send messages to node1. node1 messages are lost.
Nevertheless, the discover/connect events are well sent between peers. It looks like gossipsub peers list is not updated on disconnected node.
As said here, I don’t receive anymore messages after a node.stop() / node.start(), as shown in the following code. It works at first launch, but if I stop/start one node (by functions calls or by stoping/starting the code), messages are not sent anymore between nodes (the log in sendmessage() shows that one node is well connected to 2 peers though… but the other node is only connected to itself). And if I disable/enable wifi on node1, node2 is not informed, and only node2 can send messages to node1. node1 messages are lost. Nevertheless, the discover/connect events are well sent between peers. It looks like gossipsub peers list is not updated on disconnected node.
libp2p : 0.28.0 libp2p-gossipsub : 0.4.5