From df6cfeb1646faba30e39baf2632c3514ba8e5b3d Mon Sep 17 00:00:00 2001 From: Patrick Nagurny Date: Thu, 26 Jan 2017 18:17:36 -0500 Subject: [PATCH] add delay to make bitcoind not pause --- lib/services/db/sync.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/services/db/sync.js b/lib/services/db/sync.js index 5d7c6069..c1d30b0b 100644 --- a/lib/services/db/sync.js +++ b/lib/services/db/sync.js @@ -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) {