I was going to run two nodes and had setup the addrindex patched node to run on a VM. Due to some disk constraints (speed, capacity) I ended up deciding I would just run the patched addrindex node and use whitebind and whitelist in my bitcoin.conf so nobody but I can connect. You raised a point about vulnerabilities. Do you think the addrindex node is protected if I use whitebind and whitelist?
You have to connect to the outside world somehow... you could run your gateway node with pruning, then it would only use about 3GB space or so.
Also, what about the incorrect results you saw? What did you see and was it from this version: bitcoin-0.13.2-addrindex?
Querying it on an address wihch had funds returned no results. The addrindex code there was written by Pieter as a quick lark, before he realized it was a bad idea and abandoned it. Other people picked it up and patched it forward but made no effort to improve it or investigate the issues I encountered with it.
Generally it's my expectation that anyone who uses something like addrindex is eventually going to be forced to us a centralized service provider like blockchain.info once the resource costs of an unpruned address indexed full node is beyond what they can support. (The fact that you struggled with running two nodes suggests that you're within a factor of two of that already).
Interesting. I will know in a couple hours after bitcoin core is done processing blocks on disk if 0.13.2-addrindex returns the correct balance or not. I sure hope it does or my efforts this far have been a waste of time. Also, thanks for that history, I was not aware of Pieter's contribution and the background of this bitcoin core patch.
Running the nodes is not so much a struggle, its just that I want results now and have been trying a few different configurations.
First off in my journey here I ran the latest bitcoin core 0.15.1 and after 2 or 3 days I had the full blockchain. Played around with some of the RPC calls but found even with that I still can't get the information I needed.
So I did some research and found out about 0.13.2-addrindex. One real fucking pain has been that 0.13.2-addrindex and 0.15.1 have different database versions. Getting the full blockchain I downloaded to work with 0.13.2-addrindex was not a struggle but a time consuming process and I am impatient and want results NOW!
So I've finally got 0.13.2-addrindex on what I think are the last stages. I rebuilt the blockchain so it would work with this version. And configured the bitcoin.conf to enable the address indexing. It took forever for the build indexes on disk step. Finally its been processing blocks on disk and is close to completion.
If this doesn't work out I am going to look into porting NBitcoin.Indexer (github.com/MetacoSA/NBitcoin.Indexer) to use local filesystem storage instead of Azure or look into using NBXplorer (github.com/dgarage/NBXplorer)
So yeah. Hopefully this works out. If not you can see I've got a plan B and C already
