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)
return callback(err);
if (depth.changeDepth >= this.changeDepth)
this.setChangeDepth(depth.changeDepth + 1);
if (depth.changeDepth >= self.changeDepth)
self.setChangeDepth(depth.changeDepth + 1);
if (depth.receiveDepth >= this.receiveDepth)
this.setReceiveDepth(depth.receiveDepth + 1);
if (depth.receiveDepth >= self.receiveDepth)
self.setReceiveDepth(depth.receiveDepth + 1);
return callback(null, self);
});