Merge pull request #1923 from matiu/bug/wallet

add removed fns
This commit is contained in:
Matias Alejo Garcia 2014-12-02 14:32:17 -03:00
commit 72cc5a1a28
1 changed files with 9 additions and 1 deletions

View File

@ -290,6 +290,14 @@ Wallet.prototype.changeSettings = function(settings) {
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
* Handles a 'PUBLICKEYRING' message from <tt>senderId</tt>.
@ -945,7 +953,7 @@ Wallet.prototype.netStart = function() {
};
if (this.publicKeyRing.isComplete()) {
this.network.lockIncommingConnections(this.publicKeyRing.getAllCopayerIds());
this._lockIncomming(this.publicKeyRing.getAllCopayerIds());
}
log.debug('Wallet:' + self.id + ' Starting network.');
this.network.start(startOpts, function() {