A simple blockchain explorer
- You need MongoDB >=4 . Probably you need >= 4.4. How to install 4.4 https://computingforgeeks.com/how-to-install-latest-mongodb-on-ubuntu/
- Check using
mongod --version
- use argument
--replSet rs0
or setreplSet=rs0
in/etc/mongod.conf
and restart - you need to run and run this command
mongo rs.initiate()
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"
$ mongo
show dbs
use explorerdb
db.dropDatabase