Command added re starting afresh with Mongo DB

This commit is contained in:
Matt Pass 2018-05-29 17:39:47 +01:00 committed by GitHub
parent b58bd61c1d
commit 9d89d9235f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstances.html
## Sync'ing blockchain and starting Bitcore service
- The server comes with most of the blockchain ready downloaded for you, so just need to start the service to sync up to current blockheight and continually check for new transactions:
- `cd ~/btcp-explorer; nvm use v4; ./node_modules/bitcore-node-btcp/bin/bitcore-node start`
- If you wish to clear the Mongo DB and start afresh this can be done using:
- `sudo killall mongod; sudo rm -rf /data/db; sudo mkdir -p /data/db; sudo mongod &`
## Using BTCP Explorer:
- View explorer at **http://((server_ip)):8001**