blockchain-mongo
blockchain-mongo copied to clipboard
Ever running service?
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 to change the timer in case there are no new blocks, it can be increased to reduce overhead on connection limits.
This is a petty issue since in all likelihood there won't be cases in which there are no new blocks, but maybe someone will run this in VERY short intervals.