mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-11-05 11:56:37 +00:00
handle npe connecting to bitcoin core with wallet functionality disabled
This commit is contained in:
parent
d81b868049
commit
385d173948
1 changed files with 3 additions and 0 deletions
|
|
@ -149,6 +149,9 @@ public class BitcoindClient {
|
|||
List<String> loadedWallets;
|
||||
try {
|
||||
loadedWallets = getBitcoindService().listWallets();
|
||||
if(loadedWallets == null) {
|
||||
throw new BitcoinRPCException("Wallet support must be enabled in Bitcoin Core");
|
||||
}
|
||||
legacyWalletExists = loadedWallets.contains(Bwt.DEFAULT_CORE_WALLET);
|
||||
} catch(JsonRpcException e) {
|
||||
if(e.getErrorMessage().getCode() == RPC_METHOD_NOT_FOUND) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue