Closed ajsutton closed 3 years ago
Before nodes can be added to the k-buckets (which is where results for FINDNODES comes from), they have to be checked for liveness. But the liveness check is setup to only run periodically and check the 5 closest nodes to the local ENR. This results in repeatedly checking the liveness of some nodes and never checking it for most so very little winds up getting added to the buckets.
We need to schedule liveness checks much more intelligently.
Description
The Teku MainNet bootnode reports far fewer peers than other bootnodes with most distances having no reported peers.
Our bootnode ENR:
enr:-KG4QJRlj4pHagfNIm-Fsx9EVjW4rviuZYzle3tyddm2KAWMJBDGAhxfM2g-pDaaiwE8q19uvLSH4jyvWjypLMr3TIcEhGV0aDKQ9aX9QgAAAAD__________4JpZIJ2NIJpcIQDE8KdiXNlY3AyNTZrMaEDhpehBDbZjM_L9ek699Y7vhUJ-eAdMyQW_Fil522Y0fODdGNwgiMog3VkcIIjKA
For exploratory testing I've been using a new class in the discovery test source tree: