-
-
Save Alex-Werner/6de16b72a9070d945e3e74691d318f24 to your computer and use it in GitHub Desktop.
- 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 am able to run insight-api and insight-ui. But I have 2 questions:
- How to install & integrate dash-payment-processor?
- I have tried
npm install dash-payment-processor --S
- The service cannot be accessed using ipaddress:3001/dash-payment-processor/createReceiver
- It seems insight-api take over (refer picture below).
- I have tried
- How to run bitcore-node-dash start as background service? Because every time SSH version ended/expired, the services stopped.
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
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
Hi ,
I have my own coin , i need to setup insight UI , so what configurations need to be done in bitcore-node to sync with mycoin detals insted of bitcoind...
this is somrthing i am trying to do but not workin.
Install bitcore on your server (I use bitcore-node, but it's essentially the same)
Go into the bitcore-node.json file, alter it to point at your new coin core instead of the default bitcoind that gets downloaded upon bitcore installs.
Install insight-api. Change the bitcore-lib/lib/networks.js to be compatible with your new coin.
[optional] Install insight-ui
Get a copy of copay
Compile as-is to make sure all works.
Go into the networks.js file in the copay code (exact same format as the one in the bitcore-lib) and change it.
any help will be appriciated.