blockchain-mongo
blockchain-mongo copied to clipboard
Load the entire bitcoin blockchain into a MongoDB instance
Since blockchain.info is limiting the amount of requests per hour we need to add support for blockexplorer.com (who are currenly not limiting requests)
The current use of setInterval may cause the application to open additional connections and attempts ignoring hangs and errors. I suggest moving to setTimeout which is triggered at the end...
Some re-factoring is needed to the main executable code, minor changes, mainly for aesthetics and flow.
Blockchain provide an API key that increases the limits, maybe it would be good to add support to specify an API key (if one is available). Registration to the API...
The current flow is set with setTimeout that will query the service for more blocks, regardless if there are any. I think it would be wise to add a check...