Remove forceNetwork

This commit is contained in:
Gustavo Maximiliano Cortez 2014-09-15 10:16:40 -03:00
commit d85fcbfe07
4 changed files with 0 additions and 16 deletions

View file

@ -10,9 +10,6 @@ if (localConfig) {
var lmv = localConfig.version ? localConfig.version.split('.')[1] : '-1';
if (cmv === lmv) {
_.each(localConfig, function(value, key) {
if (key === 'networkName' && config['forceNetwork']) {
return;
}
config[key] = value;
});
}

View file

@ -67,9 +67,6 @@ function Wallet(opts) {
preconditions.checkArgument(!_.isUndefined(opts[k]), 'missing required option for Wallet: ' + k);
self[k] = opts[k];
});
preconditions.checkArgument(!copayConfig.forceNetwork || this.getNetworkName() === copayConfig.networkName,
'Network forced to ' + copayConfig.networkName +
' and tried to create a Wallet with network ' + this.getNetworkName());
this.id = opts.id || Wallet.getRandomId();
this.secretNumber = opts.secretNumber || Wallet.getRandomNumber();