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

Connection Pool Tasks #211

Open
DanMacDonald opened this issue Feb 12, 2025 · 0 comments
Open

Connection Pool Tasks #211

DanMacDonald opened this issue Feb 12, 2025 · 0 comments
Assignees

Comments

@DanMacDonald
Copy link
Collaborator

Connection Tasks

  1. Define the maximum number of connections in the local nodes connection pool (based on bandwidth / median block size)
  2. Subsample the address list and attempt to handshake / establish connections with nodes
  3. Record the latency of handshakes and score peers accordingly
  4. If a peer falls below the reputation_threshold, drop the connection.
  5. Reserve 20% of the connection pool for new / no reputation connections (so new peers can join the network)
  6. Repeat subsampling and reputation scoring until the local connection pool is saturated or there are no unvisited addresses in the address_table to attempt to connect with.

(also record the latest block height from the /info data of each peer)

@DanMacDonald DanMacDonald self-assigned this Feb 14, 2025
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

No branches or pull requests

1 participant