increment depths on sync.

This commit is contained in:
Christopher Jeffrey 2016-02-11 02:56:07 -08:00
parent d445fb7943
commit a788f151b1

View File

@ -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) {