Forked from Alex-Werner/gist:6de16b72a9070d945e3e74691d318f24
Last active
December 14, 2017 03:49
-
-
Save zarulizham/182877ca3502abcf6b2c12cf1183bfb8 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
- Do a `git clone https://github.com/dashevo/bitcore-node-dash -b impr/getVersion` | |
- cd bitcore-node-dash | |
- npm install | |
- npm install insight-api-dash --S | |
- npm install insight-ui-dash --S | |
- cd $HOME/.bitcore/ | |
- vim or nano bitcore-node-dash.json | |
- paste [REF2] | |
- cd $HOME/bitcore-node-dash | |
- 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": { | |
"spawn" : { | |
"datadir": "/home/zarul/.bitcore/data", | |
"exec": "/home/zarul/.bitcore/data/dashd" | |
}, | |
"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