chain: skip coinbases when scanning.

This commit is contained in:
Christopher Jeffrey 2016-12-01 00:03:23 -08:00
parent 81e71e7922
commit 6939ba2cd3
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1268,6 +1268,9 @@ ChainDB.prototype.scan = co(function* scan(start, filter, iter) {
continue;
}
if (i === 0)
continue;
for (j = 0; j < tx.inputs.length; j++) {
input = tx.inputs[j];
prevout = input.prevout;