mirror of https://github.com/BTCPrivate/copay.git
fix wallet creation problem
This commit is contained in:
parent
0152cb45a8
commit
065864beab
|
@ -77,11 +77,15 @@ console.log('[Wallet.js.58] connecting'); //TODO
|
|||
Wallet.prototype._handlePublicKeyRing = function(senderId, data, isInbound) {
|
||||
this.log('RECV PUBLICKEYRING:', data);
|
||||
|
||||
var recipients, pkr = this.publicKeyRing;
|
||||
var inPKR = copay.PublicKeyRing.fromObj(data.publicKeyRing);
|
||||
var wasIncomplete = !this.publicKeyRing.isComplete();
|
||||
var hasChanged = this.publicKeyRing.merge(inPKR, true);
|
||||
|
||||
var hasChanged = pkr.merge(inPKR, true);
|
||||
if (hasChanged) {
|
||||
if (wasIncomplete) {
|
||||
this.sendPublicKeyRing();
|
||||
this.connectToAll();
|
||||
}
|
||||
if (this.publicKeyRing.isComplete()) {
|
||||
this._lockIncomming();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue