Coder Social home page Coder Social logo

pantheaeu / cosmissed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blockpane/cosmissed

0.0 0.0 0.0 5.07 MB

Simple web service for tracking missed blocks on Tendermint/Cosmos chains

License: MIT License

JavaScript 14.18% Go 82.35% HTML 3.02% Dockerfile 0.45%

cosmissed's Introduction

cosmissed

Simple webservice/dashboard for tracking network info and missed blocks on Tendermint/Cosmos chains.

Unfortunately running this service requires a commercial subscription to Maxmind's API service. I would have liked to just use their free databases, but hosting it publicly violates their license terms.

Summary page:

summary screenshot

Missed block monitor:

missed screenshot

Network Graph:

network screenshot

  • The reports sent lag by 2 blocks and will not be sent if the server is syncing, this is to avoid false positives which can occur if the server is slow or behind (this affects the tendermint prometheus exporter too.
  • This requires access to both the tendermint and cosmos rpc APIs (normally port 26657 and 1317, or can use unix domain sockets.)
  • It may be traffic intensive (especially when building the cache,) and should be run against a local, private server.
  • The error not a valid HistValidatorsResp structure at startup likely means that the state has been pruned for that block height on your API server and there is not enough history to build the full cache. Try a lower -n value (normally the upper limit is 9,000).
  • All assets are bundled using go:embed, so a simple go install github.com/blockpane/cosmissed should get everything needed to run.

Usage:

Usage of cosmissedd
  -c string
        cosmos http API endpoint (default "http://127.0.0.1:1317")
  -cache string
        filename for caching previous blocks (default "cosmissed.dat")
  -extra-rpc string
        extra tendermint RPC endpoints to poll for peer info, comma seperated list of URLs
  -key string
        Required: Key for GeoIP2 Precision Web Service
  -l int
        webserver port to listen on (default 8080)
  -n int
        most recent blocks to track (default 3000)
  -p string
        address prefix, ex- cosmos = cosmosvaloper, cosmosvalcons ... (default "cosmos")
  -socket string
        filename for unix socket to listen on, if set will disable TCP listener
  -t string
        tendermint http API endpoint (default "http://127.0.0.1:26657")
  -user string
        Required: Username for GeoIP2 Precision Web Service
  -v    log new records to stdout (error logs already on stderr)

This project uses eCharts for the visualizations and Bootswatch for themes.

cosmissed's People

Contributors

blockpane 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.