https://github.com/webdollar/blockchain-explorer
A simple blockchain explorer
https://github.com/webdollar/blockchain-explorer
Last synced: 7 months ago
JSON representation
A simple blockchain explorer
- Host: GitHub
- URL: https://github.com/webdollar/blockchain-explorer
- Owner: WebDollar
- Created: 2021-07-04T08:31:27.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-12T14:07:40.000Z (over 4 years ago)
- Last Synced: 2025-02-22T01:28:20.615Z (over 1 year ago)
- Language: JavaScript
- Size: 216 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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