Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Official bitcoind using and insight integration #582

Open
ghost opened this issue Oct 2, 2018 · 1 comment
Open

Official bitcoind using and insight integration #582

ghost opened this issue Oct 2, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 2, 2018

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
Copy link
Author

ghost commented Oct 4, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants