Skip to content

Instantly share code, notes, and snippets.

@Alex-Werner
Last active June 15, 2018 10:25
Show Gist options
  • Save Alex-Werner/6de16b72a9070d945e3e74691d318f24 to your computer and use it in GitHub Desktop.
Save Alex-Werner/6de16b72a9070d945e3e74691d318f24 to your computer and use it in GitHub Desktop.
Insight v0.5 - How to
- 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.
@figassis
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment