unlock wallet at import
This commit is contained in:
parent
51660a09ab
commit
4bc55a8fde
1 changed files with 8 additions and 0 deletions
|
|
@ -560,6 +560,14 @@ angular.module('copayApp.services')
|
||||||
return cb(gettext('Could not import. Check input file and spending password'));
|
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);
|
str = JSON.parse(str);
|
||||||
|
|
||||||
var addressBook = str.addressBook || {};
|
var addressBook = str.addressBook || {};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue