fix wallet scan.
This commit is contained in:
parent
7fe140d78b
commit
86a368dddf
@ -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);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user