Last active
June 15, 2018 10:25
-
-
Save Alex-Werner/6de16b72a9070d945e3e74691d318f24 to your computer and use it in GitHub Desktop.
Insight v0.5 - How to
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Install local dashcore version. | |
- Create dash.conf file in .dashcore with data allowing to be requested by RPC (server=1, rpcport,... - You can use exemple [REF1] below) | |
- Start dashd by simply call for ./bin/dashd | |
- Then in another folder (insight?) do a git clone https://github.com/dashevo/bitcore-node-dash -b skip-dash-download | |
- cd bitcore-node-dash | |
- npm install | |
- npm install insight-api-dash --S | |
- npm install insight-ui-dash --S | |
- Create a bitcore-node-dash conf file (touch bitcore-node-dash.json) that would the network, port, services and connect data (You can use exemple [REF2] below). | |
- chmod +x bin/bitcore-node-dash | |
- ./bin/bitcore-node-dash start | |
[REF1] dash.conf | |
server=1 | |
whitelist=0.0.0.0/0 | |
txindex=1 | |
addressindex=1 | |
timestampindex=1 | |
spentindex=1 | |
zmqpubrawtx=tcp://127.0.0.1:28332 | |
zmqpubrawtxlock=tcp://127.0.0.1:28332 | |
zmqpubhashblock=tcp://127.0.0.1:28332 | |
rpcuser=dash | |
rpcpassword=local321 | |
rpcport=9998 | |
rpcallowip=0.0.0.0/0 | |
uacomment=bitcore | |
debug=1 | |
[REF2] bitcore-node-dash.json | |
{ | |
"network": "livenet", | |
"port": 3001, | |
"services": [ | |
"bitcoind", | |
"insight-api-dash", | |
"insight-ui-dash", | |
"web" | |
], | |
"servicesConfig": { | |
"bitcoind": { | |
"connect": [{ | |
"rpchost": "127.0.0.1", | |
"rpcport": 9998, | |
"rpcuser": "dash", | |
"rpcpassword": "local321", | |
"zmqpubrawtx": "tcp://127.0.0.1:28332" | |
}] | |
} | |
} | |
} | |
Nota : | |
Allowing rpc from outside can be not what you want. Instead you will prefer to set : | |
whitelist=127.0.0.1 | |
rpcallowip=127.0.0.1 | |
Troubles : | |
- If you do not see any blocks (waiting for blocks... in insight-ui), chance are that you will need to reindex dashd. | |
- If you can't npm install bitcore-node-dash on Windows, edit package.json and remove preinstall line. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I've dockerized these instructions here: https://hub.docker.com/r/figassis/docker-bitcore
Just run
docker run -d --restart=always --name dash -p 3001:3001 -p 18332:18332 -v /datadir:/root/.dashcore figassis/docker-bitcore:dash