bitpay / bitcore-node

Extensible full node using Bitcore
https://bitcore.io/
Other
351 stars 645 forks source link

Development with insight and insight-api #537

Open patricknee opened 6 years ago

patricknee commented 6 years ago

Does anybody have current instructions for how to set up a development environment with the 5.0.0-beta44 (or any recent) of:

bitcore-node insight-api insight-ui

I have been able to get the code running and populating the db, but calls to insight-api do not return valid data, with block: 0 (shown below) while the code populates the database, and calls to /insight-api/block/:blockhash using a blockhash that is reported as added in the console result in "block not in index".

{"info":{"version":"bitcore-1.1.2","blocks":0,"proxy":"","difficulty":1,"testnet":true,"relayfee":0,"errors":"","network":"testnet"}}

Debugging this setup has been a mesh of messages reporting 'More than one instance of bitcore-lib found' and attemps to hack a resolution to this have not been successful.

Has anyone gotten a development environment using the 5.0.0-beta44 code up and running?

hawthornetr commented 6 years ago

I've ran into this as well. Never got it sorted. I've pretty much given up. If you figure it out, share what you did please.

winteraz commented 6 years ago

Here is how to "fix it" . https://github.com/bitpay/bitcore-node/issues/518