fix key derivation cache in IOS

This commit is contained in:
Matias Alejo Garcia 2016-06-09 17:47:27 -03:00
commit 005c7a2664
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
3 changed files with 8 additions and 5 deletions

View file

@ -127,7 +127,6 @@ angular.module('copayApp.services')
if (!credentials.walletId)
throw 'bindWallet should receive credentials JSON';
$log.debug('Bind wallet:' + credentials.walletId);
// Create the client
var getBWSURL = function(walletId) {
@ -137,6 +136,7 @@ angular.module('copayApp.services')
};
var skipKeyValidation = root.profile.isChecked(platformInfo.ua, credentials.walletId);
$log.info('Binding wallet:' + credentials.walletId + ' Validating?:' + !skipKeyValidation);
var client = bwcService.getClient(JSON.stringify(credentials), {
bwsurl: getBWSURL(credentials.walletId),
skipKeyValidation: skipKeyValidation,