chaindb: minor.

This commit is contained in:
Christopher Jeffrey 2017-07-08 19:06:11 -07:00
parent 278265536e
commit 73e61e864a
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1255,9 +1255,7 @@ ChainDB.prototype.scan = async function scan(start, filter, iter) {
if (tx.isCoinbase())
continue;
for (let input of tx.inputs) {
let prevout = input.prevout;
for (let {prevout} of tx.inputs) {
if (filter.test(prevout.toRaw())) {
txs.push(tx);
break;