fix resetHeight.

This commit is contained in:
Christopher Jeffrey 2016-01-27 11:01:45 -08:00
parent 5dce1427ba
commit 4cc9b93fdd

View File

@ -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];