This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
client/network: Expose kbuckets via RPC #6661
Labels
J0-enhancement
An additional feature request.
Z1-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder
Motivation
I would like to find answers to the following questions to better understand the Kademlia / Polkadot DHTs as well as hopefully reduce lookup times in the long run.
What does the Kusama / Polkadot DHT topology look like? How well are nodes (validators & sentries) connected? How many nodes do close kbuckets contain? ...
How many addresses do nodes in the kbuckets have? How many of those are public / private? How many of those are routable? Do two nodes derive the same addresses for a third node?
Possible way forward
I would suggest exposing the entire routing table of each DHT via an RPC endpoint. I am currently just extending the
NetworkState
struct, but I am also fine with introducing a new RPC endpoint.This is meant to be used for debugging purposes only.
Do people have opinions / objections? If not, I will file a pull-request.
//CC @tomaka @romanb
The text was updated successfully, but these errors were encountered: