dusk-network / kadcast

Official rust implementation of the Kadcast P2P protocol for ultra-efficient message dissemination within Dusk Network
Mozilla Public License 2.0
22 stars 3 forks source link

Disconnected peer is not able to recover #112

Closed herr-seppia closed 2 years ago

herr-seppia commented 2 years ago

Describe the bug If a peer is disconnected for a while, it start to remove idle nodes as per #108 However, if the peer remove all the nodes, it becomes stalled (it knows no nodes anymore to send FindNodes messages)

To Reproduce Low the idle config to 1minute. Stay disconnected for more than 1 minute Reconnect

Expected behaviour Peer should be able to reconstruct the network properly contacting the bootstrappers

Additional context This bug has been introduced in #109