mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
Remove obsolete try/catch block in #setWalletPassword
This commit is contained in:
parent
feafd0c983
commit
ab17b67229
1 changed files with 21 additions and 26 deletions
|
@ -52,7 +52,6 @@ class CoreWalletService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setWalletPassword(String password, String newPassword) {
|
public void setWalletPassword(String password, String newPassword) {
|
||||||
try {
|
|
||||||
if (!walletsManager.areWalletsAvailable())
|
if (!walletsManager.areWalletsAvailable())
|
||||||
throw new IllegalStateException("wallet is not yet available");
|
throw new IllegalStateException("wallet is not yet available");
|
||||||
|
|
||||||
|
@ -80,10 +79,6 @@ class CoreWalletService {
|
||||||
// TODO Validate new password.
|
// TODO Validate new password.
|
||||||
KeyParameter aesKey = keyCrypterScrypt.deriveKey(password);
|
KeyParameter aesKey = keyCrypterScrypt.deriveKey(password);
|
||||||
walletsManager.encryptWallets(keyCrypterScrypt, aesKey);
|
walletsManager.encryptWallets(keyCrypterScrypt, aesKey);
|
||||||
} catch (Throwable t) {
|
|
||||||
t.printStackTrace();
|
|
||||||
throw new IllegalStateException(t);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Tuple2<Boolean, ApiStatus> lockWallet() {
|
public Tuple2<Boolean, ApiStatus> lockWallet() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue