avoid creating a core wallet if no wallets are open

This commit is contained in:
Craig Raw 2021-09-02 15:22:53 +02:00
parent 6e6111b47c
commit 8f63d89be8

View file

@ -120,7 +120,7 @@ public class Bwt {
if(config.getCoreMultiWallet() != Boolean.FALSE) { if(config.getCoreMultiWallet() != Boolean.FALSE) {
bwtConfig.bitcoindWallet = config.getCoreWallet(); bwtConfig.bitcoindWallet = config.getCoreWallet();
} }
bwtConfig.createWalletIfMissing = true; bwtConfig.createWalletIfMissing = !outputDescriptors.isEmpty();
Gson gson = new Gson(); Gson gson = new Gson();
String jsonConfig = gson.toJson(bwtConfig); String jsonConfig = gson.toJson(bwtConfig);