3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-18 21:25:49 +00:00

WalletAppKit: Fix wallet isn't moved out of the way on restore, preventing the actual restore.

This commit is contained in:
Andreas Schildbach 2019-02-19 13:39:42 +01:00
parent 883ea24483
commit fa3a5b4827

View File

@ -463,8 +463,7 @@ public class WalletAppKit extends AbstractIdleService {
} }
private void maybeMoveOldWalletOutOfTheWay() { private void maybeMoveOldWalletOutOfTheWay() {
if (restoreFromSeed == null) return; if (restoreFromSeed == null && restoreFromKey == null) return;
if (restoreFromKey == null) return;
if (!vWalletFile.exists()) return; if (!vWalletFile.exists()) return;
int counter = 1; int counter = 1;
File newName; File newName;