This repository was archived by the owner on Aug 2, 2021. It is now read-only.
This repository was archived by the owner on Aug 2, 2021. It is now read-only.
swarm/network: Complete healthy parameters #1145
Closed
Description
Currently a node can be healthy by having neighbours only.
AFAIK, the current idea of healthiness is:
- you know of and are connected to all neighbors
- if depth value is greater than 0, you should know of and be connected to at least one peer in each bin shallower than depth.
Previously we had a method full
which I believe was part of making sure of this. It can be found eg. in 362e2ba
For the abandoned work on the kademlia cleanup I introduced a notion "potent" which was supposed to be this exact check. It also has unit tests. The branch in question is here: #1108
Hopefully the task is not much more than superimposing this work on top of the current head, and making sure that the simulation tests have the right expectations.