-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
We currently connect to peers like this:
For each subnet, if the currently connected peers is below 6, calculate (6 - count) * 2 as the need.
Shuffle list of peers in the peer store, filter out connected and blocked peers.
Inspect each peer in the list, if the peer is on a subnet where we have a remaining need, connect to it and reduce the need of the subnets it is in by one.
This is not ideal.
We should additionally evaluate peers for their value to be connected to with the following factors:
| What | Why | Rough weight |
|---|---|---|
| Time of last connection attempt | It does not make sense to keep trying to connect to a peer if we cant. | High |
| Subnet overlap | A peer with many overlapping peers is more valuable to us | Medium |
| ... |
Metadata
Metadata
Assignees
Labels
No labels