From eba2aea0225d66979aa9d356dc93245131f7055d Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Wed, 13 Jan 2016 18:59:01 -0800 Subject: [PATCH] fix(BlockStream): fix emitted block heights being off by 1 --- lib/blockStream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blockStream.js b/lib/blockStream.js index 73e754f..abfb308 100644 --- a/lib/blockStream.js +++ b/lib/blockStream.js @@ -52,7 +52,7 @@ BlockStream.prototype._next = function () { this.chain.getBlock(this.requestCursor, function (err, block) { if (err) return self._error(err) var hash = u.toHash(block.header.hash) - if (self.requestHeight == null) self.requestHeight = block.height + 1 + if (self.requestHeight == null) self.requestHeight = block.height self.requestQueue.push(hash) self._getData(block) if (!block.next) {