From 7035657be833a02e867d9fcd3b7d8d9c197a90af Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Mon, 9 Feb 2015 09:55:13 -0300 Subject: [PATCH] fix incomple fix --- js/models/Wallet.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/models/Wallet.js b/js/models/Wallet.js index 6e9324b5c..4f272f6d4 100644 --- a/js/models/Wallet.js +++ b/js/models/Wallet.js @@ -988,19 +988,21 @@ Wallet.prototype.netStart = function() { secretNumber: self.secretNumber, }; + var wasIncomplete; if (this.publicKeyRing.isComplete()) { this._lockIncomming(this.publicKeyRing.getAllCopayerIds()); } else { //Partially complete wallet. if (this.publicKeyRing.getAllCopayerIds().length > 1) { this.network.setCopayers(this.publicKeyRing.getAllCopayerIds()); + wasIncomplete = true; } } log.debug('Wallet:' + self.id + ' Starting network.'); this.network.start(startOpts, function() { //Partially complete wallet. - if (self.publicKeyRing.getAllCopayerIds().length > 1) { + if (wasIncomplete) { log.debug('Incomplete wallet opened:' + self.getName() + '. forced peer sync from 0'); self.sendWalletReady(null, 0); }