Giter Club home page Giter Club logo

cosmos-crawler's Introduction

cosmos-crawler

Tool for crawling Tendermint RPC nodes

Dependencies

  • curl
  • jq
  • bash

Tested on MacOS and Ubuntu 22.04 - YMMV on other Linux distros

How It Works

This BASH script expects to be run within the crawl folder and will generate two files for each RPC node discovered

<RPC node IP>.net_info.json

and

status.<RPC node IP>.json

The DLY variable is set to 3 seconds by default - if curl does not receive a JSON response within this time, the source will be skipped.

The SEED variable must be set to an RPC endpoint (must be an IP address for this script, but this could be optimized later with a call to a DNS server) - current SEED value is a Kujira endpoint from @mintthemoon (thanks!!)

Steps to run -

Make crawl.sh executable

sudo chmod a+x crawl.sh

Then run from the crawl directory

./crawl.sh

This will take time to complete. Each RPC node will be crawled ONCE. If a net_info JSON file exists on disk for a discovered peer IP, the RPC node will not be scanned again. NOTE: this means that any new peers attached to this same RPC source since the previous interaction may be missed.

When the data is received, consider using an availble IP database to discover ISP and location information for each node (e.g. http://ip-api.com/json/192.168.0.1)

cosmos-crawler's People

Contributors

buzzeddesign avatar

Stargazers

Miha avatar GeoNodes avatar Sandalots avatar Jacob Gadikian avatar Reece Williams avatar Andrew Margetts avatar imalice avatar Albert Le Batteux avatar Jake Hartnell avatar Larry avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.