add assert.

This commit is contained in:
Christopher Jeffrey 2016-01-21 18:10:04 -08:00
parent 93e0fe95d0
commit cdfe7b6ec5

View File

@ -548,8 +548,8 @@ Chain.prototype.locatorHashes = function locatorHashes(start) {
i = top;
for (;;) {
existing = this.db.get(i);
if (existing)
hashes.push(existing.hash);
assert(existing);
hashes.push(existing.hash);
i = i - step;
if (i <= 0) {
if (i + step !== 0)