From 4cc9b93fdd016f628661b246e8927d1c811a9af7 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 27 Jan 2016 11:01:45 -0800 Subject: [PATCH] fix resetHeight. --- lib/bcoin/chain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/chain.js b/lib/bcoin/chain.js index 61b4d549..78cd3dbc 100644 --- a/lib/bcoin/chain.js +++ b/lib/bcoin/chain.js @@ -199,7 +199,7 @@ Chain.prototype.resetHeight = function resetHeight(height) { this.orphan.count = 0; this.orphan.size = 0; - for (i = height + 1; height < count; i++) { + for (i = height + 1; i < count; i++) { existing = this.db.get(i); assert(existing); delete this.heightLookup[existing.hash];