Browse Source

only fetch external fee rates on mainnet

bwt
Craig Raw 4 years ago
parent
commit
e14349a645
  1. 3
      src/main/java/com/sparrowwallet/sparrow/net/ElectrumServer.java

3
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));
}

Loading…
Cancel
Save