cubedro / eth-netstats

Ethereum Network Stats
https://ethstats.net/
GNU General Public License v3.0
854 stars 539 forks source link

Receive enodes over websockets and serve them at /static-nodes.json #361

Open d3alek opened 3 years ago

d3alek commented 3 years ago

Intention is to make eth-netstats a source of Auto-updated Enode List to use with Nethermind of example.

How it works: The enode-reporter is a separate NodeJS app that is designed to run besides Nethermind and query the Nethermind client via JsonRPC. Then it publishes enode and name on the enode channel via Websockets connection with eth-netstats. Here we collect all enodes (keyed on node id for deduplication purposes) and store them in the format of static-nodes.json, one of the config files for Nethermind.

The file is available at /static-nodes.json.