add delay to make bitcoind not pause

This commit is contained in:
Patrick Nagurny 2017-01-26 18:17:36 -05:00
parent 26108753db
commit df6cfeb164

View File

@ -212,7 +212,11 @@ BlockStream.prototype._process = function() {
block.__height = height;
next(null, block);
setTimeout(function() {
// we're getting blocks from bitcoind too fast?
// it pauses at 8100
next(null, block);
}, 1);
});
}, function(err, blocks) {
if(err) {