Skip to content

WebDollar/blockchain-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blockchain-explorer

A simple blockchain explorer

Installing tutorial

  1. You need MongoDB >=4 . Probably you need >= 4.4. How to install 4.4 https://computingforgeeks.com/how-to-install-latest-mongodb-on-ubuntu/
  2. Check using mongod --version
  3. use argument --replSet rs0 or set replSet=rs0 in /etc/mongod.conf and restart
  4. you need to run and run this command
    mongo
    rs.initiate()
    

Installing a full node.

Use branch disable-wallet https://github.com/WebDollar/Node-WebDollar/tree/disable-wallet

$ git fetch --all
$ git checkout disable-wallet
$ git pull origin disable-wallet

Edit src/node/sockets/node-server/API-router/Node-API-Router.js

Replace

if (process.env.WALLET_SECRET_URL && typeof process.env.WALLET_SECRET_URL === "string" && process.env.WALLET_SECRET_URL.length >= 30) {
    this._addRoute( process.env.WALLET_SECRET_URL+'/blocks_complete/at/:block', NodeAPIPublicBlocks.blockComplete, nodeApiType, 100, app, prefix, middleWare );
}

Replace with

if (1 === 1) {
    this._addRoute( 'SECRET_SECRET_SECRET_LONG_SECRET/blocks_complete/at/:block', NodeAPIPublicBlocks.blockComplete, nodeApiType, 100, app, prefix, middleWare );
}

Define in consts.js

fallback: "http://full_node:port"
fallbackSecret: "SECRET_SECRET_SECRET_LONG_SECRET"    

Deleting old databases

$ mongo
show dbs
use explorerdb
db.dropDatabase

About

A simple blockchain explorer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published