CounterpartyXCP / indexd-server

Bitcoin address index service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Details in install steps

unsystemizer opened this issue · comments

I had to install a ton of extra npm packages: dotenv, express, debug and (after playing with Dockerfile) node-gyp, indexd, leveldown, qup, yajrpc, zmq, bitcoinjs-lib, run-parallel.
These probably can be added to README.md.

With that, and after following the steps from Dockerfile, indexd seems to start. I don't know yet if it does anything, I'm still syncing the blockchain, but I'll verify it works correctly and create a PR with more detail related to the installation procedure.

Another place which I don't understand well is the relationship between Bitcoin Core's ZMQ settings and .env - do the ports from bitcoin.conf need to map to ports from .env, etc.

npm install will install all the node dependencies. I'm so used to that that I forgot to include it in the READM.

Oh. Good.

What about the parameters in .env, does one of them need to match zmqpubhashtx from bitcoin.conf? zmqpubrawtx (socket) I presume isn't necessary, although I pointed it to /data/index/indexd-testnet for my testnet setup... Bitcoind is still syncing so I can't tell whether this is correct.

How about txindex=1, do we still need that in bitcoin.conf? I need to rework Bitcoin Core install guide (later when we switch)

What is your npm version? I encountered a dependencies installation error.
My env version:

npm: 5.6.0
node: v9.11.2

Try any even numbered nodejs version, as odd numbered are usually unstable non-lts supported versions that some packages don't deploy compatibility packages to.
Indexd dockerfile uses node-carbon, whic is equivalent to node 8 (on its latest minor version).