add assert.
This commit is contained in:
parent
93e0fe95d0
commit
cdfe7b6ec5
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user