From e14349a6456f2563185fe92308a44b90966d27c1 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Mon, 23 Nov 2020 17:34:19 +0200 Subject: [PATCH] only fetch external fee rates on mainnet --- .../java/com/sparrowwallet/sparrow/net/ElectrumServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java b/src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java index 565de4f4..60fe8833 100644 --- a/src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java +++ b/src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java @@ -5,6 +5,7 @@ import com.google.common.collect.Iterables; import com.google.common.eventbus.Subscribe; import com.google.common.net.HostAndPort; import com.sparrowwallet.drongo.KeyPurpose; +import com.sparrowwallet.drongo.Network; import com.sparrowwallet.drongo.Utils; import com.sparrowwallet.drongo.protocol.*; import com.sparrowwallet.drongo.wallet.*; @@ -605,7 +606,7 @@ public class ElectrumServer { } FeeRatesSource feeRatesSource = Config.get().getFeeRatesSource(); - if(feeRatesSource != null) { + if(feeRatesSource != null && Network.get().equals(Network.MAINNET)) { targetBlocksFeeRatesSats.putAll(feeRatesSource.getBlockTargetFeeRates(targetBlocksFeeRatesSats)); }