mirror of
https://github.com/Qortal/qortal.git
synced 2025-03-27 07:45:53 +00:00
Validate wallet initialization result when restoring existing wallet.
This commit is contained in:
parent
2ea6921b66
commit
a4fade0157
@ -115,7 +115,11 @@ public class PirateWallet {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Restore existing wallet
|
// Restore existing wallet
|
||||||
LiteWalletJni.initfromb64(serverUri, params, wallet, saplingOutput64, saplingSpend64);
|
String response = LiteWalletJni.initfromb64(serverUri, params, wallet, saplingOutput64, saplingSpend64);
|
||||||
|
if (response != null && !response.contains("\"initalized\":true")) {
|
||||||
|
LOGGER.info("Unable to initialize Pirate Chain wallet: {}", response);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
this.seedPhrase = inputSeedPhrase;
|
this.seedPhrase = inputSeedPhrase;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user