From 3e47a49f49ffb536dde0940f98b453bacf88c273 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 5 Oct 2021 10:08:51 +0200 Subject: [PATCH] core connection: default to cookie authentication when user/pass are not filled in --- 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 1b82e960..0a731f44 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java +++ b/src/main/java/com/sparrowwallet/sparrow/net/Bwt.java @@ -112,7 +112,7 @@ public class Bwt { Config config = Config.get(); bwtConfig.bitcoindUrl = config.getCoreServer(); - if(config.getCoreAuthType() == CoreAuthType.COOKIE && config.getCoreDataDir() != null) { + if((config.getCoreAuthType() == CoreAuthType.COOKIE || config.getCoreAuth() == null || config.getCoreAuth().length() < 2) && config.getCoreDataDir() != null) { bwtConfig.bitcoindDir = config.getCoreDataDir().getAbsolutePath() + "/"; } else { bwtConfig.bitcoindAuth = config.getCoreAuth();