Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autopeering improvements #758

Merged
merged 19 commits into from
Feb 21, 2024
Merged

Autopeering improvements #758

merged 19 commits into from
Feb 21, 2024

Conversation

alexsporn
Copy link
Member

@alexsporn alexsporn commented Feb 20, 2024

  • Use a more explicit namespace for DHT discovery.
  • Use a shrinking map for holding neighbors to avoid long-term leaks.
  • Use a distinct network-name everytime the docker or feature network snapshots are created to avoid collisions in autopeering.
  • Use autopeering bootstrap peers in the docker network to speed up peer discovery.
  • Let nodes wait until node-1 is healthy before starting up. This, together with the autopeering improvements speeds up the network bootstrapping.
  • Introduced a max number of peers for autopeering. If set to 0 autopeering won't be started.
  • Stop advertising for autopeering if the max number of peers is reached.

pkg/network/p2p/manager.go Show resolved Hide resolved
@alexsporn alexsporn marked this pull request as ready for review February 21, 2024 11:24
@alexsporn alexsporn enabled auto-merge February 21, 2024 11:32
pkg/network/errors.go Outdated Show resolved Hide resolved
@alexsporn alexsporn merged commit 09347be into develop Feb 21, 2024
5 checks passed
@alexsporn alexsporn deleted the feat/autopeering-improvements branch February 21, 2024 12:41
@alexsporn alexsporn mentioned this pull request Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants