encrypted wallet feat migrated to BWC 4.0.0

This commit is contained in:
Matias Alejo Garcia 2016-08-29 15:17:41 -03:00
commit 392d8f7292
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
6 changed files with 69 additions and 101 deletions

View file

@ -87,11 +87,6 @@ angular.module('copayApp.services')
});
});
if (wallet.hasPrivKeyEncrypted() && !wallet.isPrivKeyEncrypted()) {
$log.warn('Auto locking unlocked wallet:' + walletId);
wallet.lock();
}
wallet.initialize({}, function(err) {
if (err) {
$log.error('Could not init notifications err:', err);
@ -548,14 +543,6 @@ angular.module('copayApp.services')
return cb(gettext('Could not import. Check input file and spending password'));
}
if (walletClient.hasPrivKeyEncrypted()) {
try {
walletClient.disablePrivateKeyEncryption();
} catch (e) {
$log.warn(e);
}
}
str = JSON.parse(str);
var addressBook = str.addressBook || {};