From 8f63d89be8a7bd8e9407d8690a3046cc3d314c39 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 2 Sep 2021 15:22:53 +0200 Subject: [PATCH] avoid creating a core wallet if no wallets are open --- src/main/java/com/sparrowwallet/sparrow/net/Bwt.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java b/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java index c689a5d4..2232625a 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java +++ b/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java @@ -120,7 +120,7 @@ public class Bwt { if(config.getCoreMultiWallet() != Boolean.FALSE) { bwtConfig.bitcoindWallet = config.getCoreWallet(); } - bwtConfig.createWalletIfMissing = true; + bwtConfig.createWalletIfMissing = !outputDescriptors.isEmpty(); Gson gson = new Gson(); String jsonConfig = gson.toJson(bwtConfig);