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

Cannot connect to local BitcoinCash (0.17.1) node

Open paradise opened this issue 7 years ago • 8 comments

My problem is that bitcore-node cannot connect to my local Bitcoin ABC node (0.17.1). I've setup all like here, but still getting errors:

[2018-05-19T12:45:56.836Z] info: Retrying connection to p2p network.
[2018-05-19T12:45:56.888Z] info: Disconnected from peer: 127.0.0.1

my bitcoin.conf file:

server=1
whitebind=127.0.0.1:8333
whitelist=127.0.0.1
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
rpcallowip=127.0.0.1
rpcport=8332

my bitcore-node.json

{
  "version": "5.0.0-beta.44",
  "network": "livenet",
  "port": 3001,
  "services": [
    "address",
    "block",
    "fee",
    "db",
    "header",
    "mempool",
    "p2p",
    "timestamp",
    "transaction",
    "web",
    "insight-api"
  ],
  "datadir": "/ext/node/bitcoincash",
  "servicesConfig": {
    "insight-api": {
      "cwdRequirePath": "node_modules/insight-api"
    },
    "p2p": {
      "peers": [
        { "ip": { "v4": "127.0.0.1" } }
      ]
    }  
  }
}

what steps i've missed?

paradise avatar May 19 '18 12:05 paradise

I've tested some cases. If I connect to public peer 0.16.x, then connection is successful, but this version does not support recent hard fork. If I connect to public peer 0.17.x, then connection cannot be established. Error is the same as for a local node.

paradise avatar May 19 '18 19:05 paradise

join the question, I've met the same problem as you.

eshangui avatar May 25 '18 09:05 eshangui

try to use bitcore-lib-cash instead of bitcore-lib

lianhongHou avatar Jun 08 '18 02:06 lianhongHou

it is very slow to sync bitcore-node with bitcoincash0.17, which make bitcore-node useless

lianhongHou avatar Jun 08 '18 02:06 lianhongHou

@lianhongHou can you tell me how to use bitcore-lib-cash instead of bitcore-lib? This is my error. _20180611195316

zhousi666 avatar Jun 11 '18 11:06 zhousi666

do not use bitcore-lib for bitcoincash, use bitcore-lib-cash instead, and replace 'require('bitcore-lib')' with 'require('bitcore-lib-cash')' in all js files in your project.

lianhongHou avatar Jun 12 '18 07:06 lianhongHou

Yeah you can check this fork of this node, it's only using bitcore-lib-cash, and it connects with a local bitcoin-abc 0.17.2.

osagga avatar Jun 22 '18 02:06 osagga

My problem is that bitcore-node cannot connect to my local Bitcoin ABC node (0.17.1). I've setup all like here, but still getting errors:

info: Retrying connection to p2p network. info: Disconnected from peer: 127.0.0.1

vladislavmamchich avatar Dec 20 '18 14:12 vladislavmamchich