celestia-node icon indicating copy to clipboard operation
celestia-node copied to clipboard

feat(discovery): discover triggered too frequently

Open guillaumemichel opened this issue 8 months ago • 4 comments

In the case a node doesn't have its quota of peers, it will send a new discover request every second. There are no guarantees that the discover request can complete within 1 second.

https://github.com/celestiaorg/celestia-node/blob/accb0589d2de42a44de43e0974610d3a0186976d/share/p2p/discovery/discovery.go#L225-L229

This interval seems too aggressive and should probably be increased (e.g to 1 or even 5 minutes?)

guillaumemichel avatar Jul 03 '24 13:07 guillaumemichel