3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 06:44:16 +00:00

HDW: Fix the case of wallet upgrades where the aesKey is provided.

This commit is contained in:
Mike Hearn 2014-08-11 15:03:07 +02:00
parent 00a276f906
commit 54a543bf77

View File

@ -435,7 +435,7 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha
if (keychain.isDeterministicUpgradeRequired()) {
log.info("Upgrade to HD wallets is required, attempting to do so.");
try {
upgradeToDeterministic(null);
upgradeToDeterministic(aesKey);
} catch (DeterministicUpgradeRequiresPassword e) {
log.error("Failed to auto upgrade due to encryption. You should call wallet.upgradeToDeterministic " +
"with the users AES key to avoid this error.");