bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

BITCORE_CONFIG_PATH don't work

Open atomlab opened this issue 7 years ago • 2 comments

BITCORE_CONFIG_PATH don't work. Still connect to default address:port (127.0.0.1:8333).

{
  "bitcoreNode": {
    "chains": {
      "DOGE": {
        "mainnet": {
          "chainSource": "p2p",
          "trustedPeers": [
            {
              "host": "10.17.140.5",
              "port": 19334
            }
          ],
          "rpc": {
            "host": "10.17.140.5",
            "port": 19335,
            "username": "user",
            "password": "user"
          }
        }
    }
  }
}

run

bitcore@bitcore:~/bitcore$ export BITCORE_CONFIG_PATH='/opt/bitcore/.bitcore/bitcore.config.json'
bitcore@bitcore:~/bitcore$ npm run node

> @8.1.0 node /opt/bitcore/bitcore
> cd packages/bitcore-node && npm start


> [email protected] start /opt/bitcore/bitcore/packages/bitcore-node
> npm run tsc && node build/src/server.js


> [email protected] tsc /opt/bitcore/bitcore/packages/bitcore-node
> npm run clean && ./node_modules/.bin/tsc


> [email protected] clean /opt/bitcore/bitcore/packages/bitcore-node
> rm -rf build

info: Starting Event Service
info: Starting P2P Manager
warn: 2019-06-27 20:11:29.545 UTC | Not connected to peer: 127.0.0.1:8333  | Chain: BTC | Network: mainnet

atomlab avatar Jun 27 '19 20:06 atomlab

@atomlab Hi..did you got any solution for this?

Rtblock avatar Nov 08 '19 07:11 Rtblock

I was able to make bitcore-node running with manually setting BITCORE_CONFIG_PATH.

todipratik avatar Dec 30 '19 07:12 todipratik