GithubHelp home page GithubHelp logo

amoebateam / explorer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ethereumclassic/explorer

0.0 2.0 0.0 9.54 MB

Amoeba Block Explorer

License: Other

Dockerfile 0.01% JavaScript 53.05% CSS 17.24% HTML 17.17% CoffeeScript 12.46% Shell 0.07%

explorer's Introduction

ETCExplorer

Live Version: etherhub.io

Local installation

Clone the repo

Install dependencies:

npm install

Install mongodb:

MacOS: brew install mongodb

Ubuntu: sudo apt-get install -y mongodb-org

Populate the DB

This will fetch and parse the entire blockchain.

Setup your configuration file: cp config.example.json config.json

Edit config.json as you wish

Basic settings:

{
    "nodeAddr":     "localhost",
    "gethPort":     8545,
    "startBlock":   0,
    "endBlock":     "latest",
    "quiet":        true,
    "syncAll":      true,
    "patch":        true,
    "patchBlocks":  100,
    "settings": {
        "symbol": "ETC",
        "name": "Ethereum Classic",
        "title": "Ethereum Classic Block Explorer",
        "author": "Elaine"
    }
}

nodeAddr Your node API RPC address.

gethPort Your node API RPC port.

startBlock This is the start block of the blockchain, should always be 0 if you want to sync the whole ETC blockchain.

endBlock This is usually the 'latest'/'newest' block in the blockchain, this value gets updated automatically, and will be used to patch missing blocks if the whole app goes down.

quiet Suppress some messages. (admittedly still not quiet)

syncAll If this is set to true at the start of the app, the sync will start syncing all blocks from lastSync, and if lastSync is 0 it will start from whatever the endBlock or latest block in the blockchain is.

patch If set to true and below value is set, sync will iterated through the # of blocks specified.

patchBlocks If patch is set to true, the amount of block specified will be check from the latest one.

Run:

The below will start both the web-gui and sync.js (which populates MongoDV with blocks/transactions). npm start

You can leave sync.js running without app.js and it will sync and grab blocks based on config.json parameters node ./tools/sync.js

Enabling stats requires running a separate process: node ./tools/stats.js

You can configure intervals (how often a new data point is pulled) and range (how many blocks to go back) with the following: RESCAN=1000:100000 node tools/stats.js (New data point every 1,000 blocks. Go back 100,000 blocks).

explorer's People

Contributors

elaineo avatar bakon11 avatar pyskell avatar hackmod avatar cody-burns avatar kimisan avatar realcodywburns avatar matthewjamesr avatar empty2k12 avatar drignazgortngschirl avatar mess110 avatar dexaran avatar rguiu avatar varunram avatar arksnorman avatar oldcryptogeek avatar

Watchers

James Cloos avatar  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.