Giter VIP home page Giter VIP logo

eth-netstats's Introduction

Ethereum Network Stats "Classic"

Eth-Netstats "Classic" is a visual interface for tracking ethereum network status. It uses WebSockets to receive stats from running nodes and output them through an Angular interface. It is the front-end implementation for eth-net-intelligence-api.

Other implementations of Eth-Netstats can be found at:

Screenshot

Prerequisite

  • node
  • npm

Installation

Make sure you have node.js and npm installed.

Clone the repository and install the dependencies

git clone https://github.com/ethereum/eth-netstats
cd eth-netstats
npm install
sudo npm install -g grunt-cli

Build the resources

NetStats features two versions: the full version and the lite version. In order to build the static files you have to run grunt tasks which will generate dist or dist-lite directories containing the js and css files, fonts and images.

To build the full version run

grunt

To build the lite version run

grunt lite

If you want to build both versions run

grunt all

Run

npm start

see the interface at http://localhost:3000

In order to receive stats from running nodes the web socket password needs to be provided

WS_SECRET=<secret> npm start

where <secret> is the value specified in the app.json file in the eth-net-intelligence-api directory. Running these tools concurrently with an etherium node will display the node on the eth-netstats interface.

Receiving Stats From an Ethereum Node

Follow the instructions for installing and running The Ethereum Network Intelligence API. Make sure to edit the app.json file with the appropriate information. In particular:

  • Confirm the correct configuration for the RPC_PORT and CONFIGURATION_PORT. The defaults are "8545" and "30303" respectively.
  • INSTANCE_NAME is the name your Ethereum node appears as in the front end.
  • WS_SERVER is the IP address and port (3000 is default).
  • As mentioned earlier WS_SECRET needs to match the environmental variable provided when running npm start.

The Ethereum Network Intelligence API should be run concurrently with the Ethereum client of your choice. More information on running Ethereum node can be found here.

eth-netstats's People

Contributors

cubedro avatar debris avatar frozeman avatar jesuscript avatar jorisbontje avatar jpitts avatar pauljickling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eth-netstats's Issues

netstats process crashing when a node connects

This is happening on the latest master branch.

How to reproduce

  • Run docker run -p 3000:3000 --rm -e WS_SECRET=supersecret ethdevops/ethstats:89f430e
  • Run geth --ethstats test:supersecret@localhost:3000

Error log:

getBlockPropagation...                                                                                                                                                                                       
checking timeSinceLastLog: 1565200875.761                                                                                                                                                                    
writing propagation data to file...                                                                                                                                                                          
getBlockPropagation...                                                                                                                                                                                       
checking timeSinceLastLog: 2.656                                                                                                                                                                             
API CON Open: 127.0.0.1                                                                                                                                                                                  
API CON Hello test                                                                                                                                                                                           
2019-08-07 18:01:25.791 [API] [CON] Connected test                                                                                                                                                           
/eth-netstats/lib/history.js:308                                                                                                                                                                             
        if( !_.isUndefined(best.height) )                                                                                                                                                                    
                                ^                                                                                                                                                                            
                                                                                                                                                                                                             
TypeError: Cannot read property 'height' of undefined                                                                                                                                                        
    at History.bestBlockNumber (/eth-netstats/lib/history.js:308:26)                                                                                                                                         
    at Collection.canNodeUpdate (/eth-netstats/lib/collection.js:313:55)
    at Collection.requiresUpdate (/eth-netstats/lib/collection.js:323:16)
    at Sparky.<anonymous> (/eth-netstats/app.js:335:14)
    at Sparky.emit (events.js:203:13)
    at Sparky.incoming (/eth-netstats/node_modules/primus-emit/index.js:72:44)
    at transform (/eth-netstats/node_modules/primus/spark.js:312:33)
    at Sparky.transforms (/eth-netstats/node_modules/primus/spark.js:330:4)
    at decoding (/eth-netstats/node_modules/primus/spark.js:215:13)
    at Sparky.decoder (/eth-netstats/node_modules/primus/parsers/json.js:34:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node ./bin/www`
npm ERR! Exit status 1

fyi @pauljickling @jpitts

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.