From 2cf653702c4037b6bfaa97a77e029e0d1811afbe Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 20 Oct 2020 11:36:23 +0200 Subject: [PATCH] handle no prior connection for fetching min relay fee rate --- src/main/java/com/sparrowwallet/sparrow/AppController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index c0b8fb43..ecd933e4 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppController.java @@ -644,7 +644,7 @@ public class AppController implements Initializable { } public static Double getMinimumRelayFeeRate() { - return minimumRelayFeeRate; + return minimumRelayFeeRate == null ? Transaction.DEFAULT_MIN_RELAY_FEE : minimumRelayFeeRate; } public static CurrencyRate getFiatCurrencyExchangeRate() {