increment depths on sync.
This commit is contained in:
parent
d445fb7943
commit
a788f151b1
@ -648,10 +648,10 @@ Wallet.prototype.getOutputDepth = function getOutputDepth(tx) {
|
||||
|
||||
Wallet.prototype.syncOutputDepth = function syncOutputDepth(tx) {
|
||||
var depth = this.getOutputDepth(tx);
|
||||
if (depth.change > this.changeDepth)
|
||||
this.setChangeDepth(depth.change);
|
||||
if (depth.receive > this.receiveDepth)
|
||||
this.setReceiveDepth(depth.receive);
|
||||
if (depth.change >= this.changeDepth)
|
||||
this.setChangeDepth(depth.change + 1);
|
||||
if (depth.receive >= this.receiveDepth)
|
||||
this.setReceiveDepth(depth.receive + 1);
|
||||
};
|
||||
|
||||
Wallet.prototype.scriptInputs = function scriptInputs(tx, index) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user