ethereum / node-crawler

Attempts to crawl the Ethereum network of valid Ethereum execution nodes and visualizes them in a nice web dashboard.

Home Page:https://www.ethernets.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature: Add country data to each node

mohamedmansour opened this issue · comments

Since this is P2P, we have information on each node, would be nice visualization if we convert ip address to a country location, and add that to the database. We do not want to store lat/long for privacy purposes.

Nice visualizations could come from this:

  • World map (countries)
  • Drill down on countries for advanced filtering

Technical Details:
The nodestable has an IP column, we need to convert that IP to a country string. So we need to figure out how to do that, once that is done, we can create a country column in the nodes table, and append the dashboard query in api.go with the new top countries query. Then in the frontend, we can start with a bar graph with the countries. And add drilldown to that as well. The frontend is pretty straight forward since we can copy the same thing that clients did.

Hi @mohamedmansour ,

this is sth I wanted to implement myself recently.

You can assign me on this. I will be trying to get everything up and running and start work this week.

@b-m-f great, we already have the geoip stuff in the crawler, we just need to include it in the api and render it in the web app.

Alright. Thanks for the info.

I'll try to wire it up tomorrow

Super cool thank you!