chain: only rescan output hashes.
This commit is contained in:
parent
d371fc5d14
commit
f735c7da83
@ -1095,7 +1095,7 @@ ChainDB.prototype.scan = co(function* scan(start, filter, iter) {
|
|||||||
throw new Error('Cannot rescan an alternate chain.');
|
throw new Error('Cannot rescan an alternate chain.');
|
||||||
|
|
||||||
while (entry) {
|
while (entry) {
|
||||||
block = yield this.getFullBlock(entry.hash);
|
block = yield this.getBlock(entry.hash);
|
||||||
total++;
|
total++;
|
||||||
|
|
||||||
if (!block)
|
if (!block)
|
||||||
@ -1109,7 +1109,7 @@ ChainDB.prototype.scan = co(function* scan(start, filter, iter) {
|
|||||||
|
|
||||||
for (i = 0; i < block.txs.length; i++) {
|
for (i = 0; i < block.txs.length; i++) {
|
||||||
tx = block.txs[i];
|
tx = block.txs[i];
|
||||||
hashes = tx.getHashes('hex');
|
hashes = tx.getOutputHashes('hex');
|
||||||
|
|
||||||
for (j = 0; j < hashes.length; j++) {
|
for (j = 0; j < hashes.length; j++) {
|
||||||
hash = hashes[j];
|
hash = hashes[j];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user