add delay to make bitcoind not pause
This commit is contained in:
parent
26108753db
commit
df6cfeb164
@ -212,7 +212,11 @@ BlockStream.prototype._process = function() {
|
|||||||
|
|
||||||
block.__height = height;
|
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) {
|
}, function(err, blocks) {
|
||||||
if(err) {
|
if(err) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user