mirror of https://github.com/BTCPrivate/copay.git
commit
72cc5a1a28
|
@ -290,6 +290,14 @@ Wallet.prototype.changeSettings = function(settings) {
|
||||||
this.emitAndKeepAlive('settingsUpdated');
|
this.emitAndKeepAlive('settingsUpdated');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @desc Locks other sessions from connecting to the wallet
|
||||||
|
* @see Async#lockIncommingConnections
|
||||||
|
*/
|
||||||
|
Wallet.prototype._lockIncomming = function() {
|
||||||
|
this.network.lockIncommingConnections(this.publicKeyRing.getAllCopayerIds());
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc
|
* @desc
|
||||||
* Handles a 'PUBLICKEYRING' message from <tt>senderId</tt>.
|
* Handles a 'PUBLICKEYRING' message from <tt>senderId</tt>.
|
||||||
|
@ -945,7 +953,7 @@ Wallet.prototype.netStart = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this.publicKeyRing.isComplete()) {
|
if (this.publicKeyRing.isComplete()) {
|
||||||
this.network.lockIncommingConnections(this.publicKeyRing.getAllCopayerIds());
|
this._lockIncomming(this.publicKeyRing.getAllCopayerIds());
|
||||||
}
|
}
|
||||||
log.debug('Wallet:' + self.id + ' Starting network.');
|
log.debug('Wallet:' + self.id + ' Starting network.');
|
||||||
this.network.start(startOpts, function() {
|
this.network.start(startOpts, function() {
|
||||||
|
|
Loading…
Reference in New Issue