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. |
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
Hi! run bitcore-node-dash start it throw me this error, what should i do?
root@ubuntu:~/bitcore-node-dash# ./bin/bitcore-node-dash start
[2018-05-30T09:15:10.984Z] info: Using config: /root/bitcore-node-dash/bitcore-node-dash.json
[2018-05-30T09:15:10.988Z] info: Using network: livenet
[2018-05-30T09:15:10.991Z] info: Starting bitcoind
[2018-05-30T09:15:11.047Z] info: Dash Daemon Ready
[2018-05-30T09:15:11.048Z] info: Starting web
[2018-05-30T09:15:11.084Z] info: Starting insight-api-dash
[2018-05-30T09:15:11.086Z] info: Starting insight-ui-dash
[2018-05-30T09:15:11.088Z] info: Bitcore Node ready
[2018-05-30T09:15:11.534Z] warn: ZMQ connection delay: tcp://127.0.0.1:28332
[2018-05-30T09:15:11.539Z] info: ZMQ connected to: tcp://127.0.0.1:28332
[2018-05-30T09:15:12.026Z] info: ::ffff:192.168.1.100 web socket subscribe: inv
[2018-05-30T09:15:12.035Z] info: ::ffff:192.168.1.100 web socket subscribe: sync
[2018-05-30T09:15:12.036Z] info: ::ffff:192.168.1.100 web socket subscribe: inv
[2018-05-30T09:15:33.466Z] info: ::ffff:192.168.1.100 "GET /insight-api-dash/blocks" 400 29 13.801 "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"
[2018-05-30T09:15:33.529Z] info: ::ffff:192.168.1.100 web socket subscribe: sync
[2018-05-30T09:15:33.538Z] info: ::ffff:192.168.1.100 "GET /insight-api-dash/peer" 200 49 2.805 "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"
[2018-05-30T09:15:36.381Z] info: Dash Height: 78300 Percentage: 100.00
[2018-05-30T09:15:36.548Z] error: uncaught exception: TypeError: Cannot read property '_scriptBuffer' of undefined
at BlockController.getPoolInfo (/root/bitcore-node-dash/node_modules/insight-api-dash/lib/blocks.js:362:56)
at BlockController.transformBlock (/root/bitcore-node-dash/node_modules/insight-api-dash/lib/blocks.js:189:20)
at /root/bitcore-node-dash/node_modules/insight-api-dash/lib/blocks.js:119:32
at /root/bitcore-node-dash/node_modules/async/lib/async.js:676:51
at /root/bitcore-node-dash/node_modules/async/lib/async.js:726:13
at /root/bitcore-node-dash/node_modules/async/lib/async.js:52:16
at /root/bitcore-node-dash/node_modules/async/lib/async.js:264:21
at /root/bitcore-node-dash/node_modules/async/lib/async.js:44:16
at /root/bitcore-node-dash/node_modules/async/lib/async.js:723:17
at /root/bitcore-node-dash/node_modules/async/lib/async.js:167:37
thanks