add import logs

This commit is contained in:
Matias Alejo Garcia 2016-06-01 08:36:25 -03:00
commit fa04610a10
No known key found for this signature in database
GPG key ID: 02470DB551277AB3

View file

@ -78,10 +78,12 @@ angular.module('copayApp.services')
root.setBaseURL(credentials.walletId);
$log.debug('Importing wallet:' + credentials.walletId);
var client = bwcService.getClient(JSON.stringify(credentials));
root.walletClients[credentials.walletId] = client;
if (client.incorrectDerivation) {
$log.warn('Key Derivation failed for wallet:' + credentials.walletId);
storageService.clearLastAddress(credentials.walletId, function() {});
}