celestiaorg / celestiaorg/celestia-node

feat(p2p): Enable DHT Discovery in Gossipsub

Open
#3,262 0 comments 2 reactions 0 assignees View on GitHub
area:p2p enhancement kind:feat stale
Dominant language
Go
Stars
996
Forks
1.1k
Avg merge
1d 6h
Merged PRs (30d)
34

Description

### Implementation ideas

Our project utilizes the Gossipsub component for headerSub and fraudSub. The Gossipsub component currently operates with DHT discovery disabled. This configuration severely limits the component's ability to dynamically discover peers, relying instead on a less efficient mechanism: looping over existing connections and negotiating protocols. This approach not only restricts network adaptability but also impacts overall system performance.

- Limited Peer Discovery: Disabling DHT leads to reliance on static peers, hindering dynamic network adaptation.
- Network Resilience: The lack of dynamic discovery reduces the network's ability to recover from node failures and adapt to changes.
- Performance Impact: Without DHT, the network might not utilize resources optimally, affecting scalability and throughput.

Recommendation: Enable DHT discovery in Gossipsub. Benefits include improved peer discovery, enhanced network resilience, and optimized resource usage, leading to better overall network performance and scalability.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.