fix wallet scan.

This commit is contained in:
Christopher Jeffrey 2016-02-20 03:50:25 -08:00
parent 7fe140d78b
commit 86a368dddf

View File

@ -671,11 +671,11 @@ Wallet.prototype.scan = function scan(txByAddress, callback) {
if (err) if (err)
return callback(err); return callback(err);
if (depth.changeDepth >= this.changeDepth) if (depth.changeDepth >= self.changeDepth)
this.setChangeDepth(depth.changeDepth + 1); self.setChangeDepth(depth.changeDepth + 1);
if (depth.receiveDepth >= this.receiveDepth) if (depth.receiveDepth >= self.receiveDepth)
this.setReceiveDepth(depth.receiveDepth + 1); self.setReceiveDepth(depth.receiveDepth + 1);
return callback(null, self); return callback(null, self);
}); });