checks network match when joining a wallet

This commit is contained in:
Matias Alejo Garcia 2014-06-09 21:00:28 -03:00
commit 4ae3748414
5 changed files with 26 additions and 5 deletions

View file

@ -248,7 +248,7 @@ PublicKeyRing.prototype._checkInPKR = function(inPKR, ignoreId) {
}
if (this.network.name !== inPKR.network.name) {
throw new Error('inPKR network mismatch. Should be '+this.network.name +
throw new Error('Network mismatch. Should be '+this.network.name +
' and found '+inPKR.network.name);
}