Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

etherzero-org/explorer

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

608 Commits
608 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ETZExplorer

Local installation

  • Make sure you already have installed node,if not,please refered this
git clone git@github.com:etherzero-org/explorer.git
cd explorer
npm i

Install mongodb:

  • MacOS: brew install mongodb
  • Centos: yum install -y mongodb
  • Ubuntu: sudo apt-get install -y mongodb-org

Populate the DB

  • This will fetch and parse the entire blockchain.
  • Configuration file: /tools/grabber.js
  • modify the var "config" (near the file end) like follow basic settings:
var config = {
    "rpc": 'http://localhost:9646',
    "blocks": [ {"start": 0, "end": "latest"}],
    "quiet": true,
    "terminateAtExistingDB": false,
    "listenOnly": false,//false:graber interval. true:grabe by listen new block.
    "out": "."
};
  • rpc etherzero rpc which your browser will grab data from
  • blocks is a list of blocks to grab. It can be specified as a list of block numbers or an interval of block numbers. When specified as an interval, it will start at the end block and keep recording decreasing block numbers.
  • terminateAtExistingDB will terminate the block grabber once it gets to a block it has already stored in the DB.
  • quiet prints out the log of what it is doing. currently not use
  • listenOnly,When true, the grabber will create a filter to receive the latest blocks from geth as they arrive. It will not continue to populate older block numbers.
  • When listenOnly is set to true, the blocks option is ignored. Note 2: terminateAtExistingDB and listenOnly are mutually exclusive. Do not use terminateAtExistingDB when in listenOnly mode.

Run Grabber:

nohup node ./tools/grabber.js >> ./grabber.log 2>&1 &  

About

EthereumClassic Block Explorer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.2%
  • HTML 1.8%
  • CSS 1.2%
  • CoffeeScript 0.8%
  • Shell 0.0%
  • Batchfile 0.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.