retrieve fee rates from configured source on non-mainnet networks where available

This commit is contained in:
Craig Raw
2024-10-07 12:13:24 +02:00
parent e50fe4c68c
commit 7e68ecffd3
3 changed files with 34 additions and 3 deletions
@@ -823,7 +823,7 @@ public class ElectrumServer {
if(AppServices.getTargetBlockFeeRates() != null) {
targetBlocksFeeRatesSats.putAll(AppServices.getTargetBlockFeeRates());
}
} else if(Network.get().equals(Network.MAINNET)) {
} else if(feeRatesSource.supportsNetwork(Network.get())) {
targetBlocksFeeRatesSats.putAll(feeRatesSource.getBlockTargetFeeRates(targetBlocksFeeRatesSats));
}