fix resetHeight.
This commit is contained in:
parent
5dce1427ba
commit
4cc9b93fdd
@ -199,7 +199,7 @@ Chain.prototype.resetHeight = function resetHeight(height) {
|
|||||||
this.orphan.count = 0;
|
this.orphan.count = 0;
|
||||||
this.orphan.size = 0;
|
this.orphan.size = 0;
|
||||||
|
|
||||||
for (i = height + 1; height < count; i++) {
|
for (i = height + 1; i < count; i++) {
|
||||||
existing = this.db.get(i);
|
existing = this.db.get(i);
|
||||||
assert(existing);
|
assert(existing);
|
||||||
delete this.heightLookup[existing.hash];
|
delete this.heightLookup[existing.hash];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user