encrypted wallet feat migrated to BWC 4.0.0
This commit is contained in:
parent
5864afd8c0
commit
392d8f7292
6 changed files with 69 additions and 101 deletions
|
|
@ -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 || {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue