bitcore-node icon indicating copy to clipboard operation
bitcore-node copied to clipboard

Official bitcoind using and insight integration

Open ghost opened this issue 8 years ago • 1 comments

Hello. Please, tell me how can I use bitcoind instead bcore or configure bitcore-node for already downloaded bitcoind chain? I have next configurations:

$ cat ~/.bitcoin/bitcoin.conf 
server=1
mainnet=1
whitebind=127.0.0.1:8333
whitelist=127.0.0.1
txindex=1
addressindex=1
timestampindex=1
spentindex=1
datadir=~/bitcore/.bitcoin
zmqpubrawtx=tcp://127.0.0.1:28332
zmqpubhashblock=tcp://127.0.0.1:28332
rpcallowip=127.0.0.1
uacomment=bitcore
$ cat ~/.bitcore/bitcore-node.json 
{
  "version": "5.0.0-beta.44",
  "network": "livenet",
  "port": 3001,
  "services": [
    "address",
    "block",
    "db",
    "fee",
    "header",
    "mempool",
    "p2p",
    "timestamp",
    "transaction",
    "web"
  ],
  "datadir": "/home/bitcore/.bitcore/data",
  "servicesConfig": {
    "insight-api": {
      "cwdRequirePath": "node_modules/insight-api"
    },
    "insight-ui": {
      "cwdRequirePath": "node_modules/insight-ui"
    },
    "p2p": {
      "peers": [
        { "ip": { "v4": "127.0.0.1" } }
      ]
    }
  }
}

When I runc bitcore-node he connect to 127.0.0.1, but download chain again and I got twice downloaded chain. Can I prevent this behavior and use only bitcoind chain?

Also you remove insight service from bitcore-node, how can I use insight-ui and insight-api with bitcore-node? When I run bitcore-node - webserver tolds me, what 'GET /insight' not found.

ghost avatar Oct 02 '18 10:10 ghost

I found workaround with starting insight-api - you must remove node_modules/insight-api, checkout latest version from github, npm install and place in bitcore-node.json right path to insight-api.

But still not find how pass TRUST PEER to bcoin for reduce using place.

ghost avatar Oct 04 '18 08:10 ghost