diff --git a/lib/chain/chaindb.js b/lib/chain/chaindb.js index 1ec96c5a..b54e5e9e 100644 --- a/lib/chain/chaindb.js +++ b/lib/chain/chaindb.js @@ -1095,7 +1095,7 @@ ChainDB.prototype.scan = co(function* scan(start, filter, iter) { throw new Error('Cannot rescan an alternate chain.'); while (entry) { - block = yield this.getFullBlock(entry.hash); + block = yield this.getBlock(entry.hash); total++; if (!block) @@ -1109,7 +1109,7 @@ ChainDB.prototype.scan = co(function* scan(start, filter, iter) { for (i = 0; i < block.txs.length; i++) { tx = block.txs[i]; - hashes = tx.getHashes('hex'); + hashes = tx.getOutputHashes('hex'); for (j = 0; j < hashes.length; j++) { hash = hashes[j];