dashevo / bitcore-dash

A full stack for dash and blockchain-based applications
https://bitcore.io/
Other
10 stars 20 forks source link

Bitcore dash is running Bitcoin #6

Open figassis opened 6 years ago

figassis commented 6 years ago

To get around this issue I decided to install bitcore dash directly from GH using npm install -g dashevo/bitcore-dash#v4.1.0

However, I noticed that my /insight endpoint is serving bitcoin testnet instead of dash. Even the block height was the same (1325172). My bitcore-node.json is below:

{
  "network": "testnet",
  "port": 3001,
  "services": [
    "bitcoind",
    "web",
    "insight-api",
    "insight-ui"
  ],
  "servicesConfig": {
    "bitcoind": {
      "spawn": {
        "datadir": "/root/.bitcore/data",
        "exec": "/usr/local/lib/node_modules/bitcore/node_modules/bitcore-node/bin/bitcoind"
      }
    },
    "insight-api": {
      "disableRateLimiter": true,
        "rateLimiterOptions": {
        "limit":  1000000000000
      }
    }
  }
}
nmarley commented 5 years ago

Hi,

It looks like you are using Bitcoin values in your config file. These are paths to the Bitcoin exe and datadir:

        "datadir": "/root/.bitcore/data",
        "exec": "/usr/local/lib/node_modules/bitcore/node_modules/bitcore-node/bin/bitcoind"

I'm not sure if this particular library (dashevo/bitcore-dash) is well supported or needs to exist TBH. Can you try the instructions here at dashcore-node and see if this solves your issue?

https://github.com/dashevo/dashcore-node

Note that we're trying to move away from the "one-npm-command-does everything" model, (which is an example of tight coupling and terrible software architecture) so if you want to run a Dash full node, that should be downloaded and managed separately.