Information about peers is stored in a Kademlia-like Distributed Hash Table in my node. Where is it stored? I know that admin.peers command gives me a list of nodes but I want to see the actual structure of the table with all the information about peers. Is this possible?


These are stored in the the ~/.ethereum/nodes/ directory as a LevelDB database (in .ldb files). The reading and writing of these files is handeled by database.go.

To read them you'd need a tool which understood the schema on which the database is based, which is described here. I don't know of any existing tool for the node data, but block explorers work in an equivalent way by reading and parsing the chaindata .ldb files (I believe).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.