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

Cannot connect to local BitcoinCash (0.17.1) node #565

Open
paradise opened this issue May 19, 2018 · 8 comments
Open

Cannot connect to local BitcoinCash (0.17.1) node #565

paradise opened this issue May 19, 2018 · 8 comments

Comments

@paradise
Copy link

paradise commented May 19, 2018

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

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 paradise changed the title Cannot connect to local node Cannot connect to local BitcoinCash node May 23, 2018
@paradise paradise changed the title Cannot connect to local BitcoinCash node Cannot connect to local BitcoinCash (0.17.1) node May 23, 2018
@eshangui
Copy link

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

@lianhongHou
Copy link

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

@lianhongHou
Copy link

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

@zhousi666
Copy link

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

@lianhongHou
Copy link

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.

@osagga
Copy link

osagga commented Jun 22, 2018

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.

@vladislavmamchich
Copy link

vladislavmamchich commented Dec 20, 2018

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

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

6 participants