mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #4587 from JDonadio/feat/unlock-wallet
Unlock wallet at import
This commit is contained in:
commit
608bb9b4b8
|
@ -560,6 +560,14 @@ 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…
Reference in New Issue