Remove obsolete try/catch block in #setWalletPassword

This commit is contained in:
Chris Beams 2020-05-03 18:52:31 +02:00
parent feafd0c983
commit ab17b67229
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73

View file

@ -52,7 +52,6 @@ class CoreWalletService {
}
public void setWalletPassword(String password, String newPassword) {
try {
if (!walletsManager.areWalletsAvailable())
throw new IllegalStateException("wallet is not yet available");
@ -80,10 +79,6 @@ class CoreWalletService {
// TODO Validate new password.
KeyParameter aesKey = keyCrypterScrypt.deriveKey(password);
walletsManager.encryptWallets(keyCrypterScrypt, aesKey);
} catch (Throwable t) {
t.printStackTrace();
throw new IllegalStateException(t);
}
}
public Tuple2<Boolean, ApiStatus> lockWallet() {