default to mempool size fee rates selection if not configured

This commit is contained in:
Craig Raw 2021-03-03 15:36:33 +02:00
parent 11e46155a1
commit ffbf4bb0db

View file

@ -272,7 +272,7 @@ public class SendController extends WalletFormController implements Initializabl
} }
FeeRatesSelection feeRatesSelection = Config.get().getFeeRatesSelection(); FeeRatesSelection feeRatesSelection = Config.get().getFeeRatesSelection();
feeRatesSelection = (feeRatesSelection == null ? FeeRatesSelection.BLOCK_TARGET : feeRatesSelection); feeRatesSelection = (feeRatesSelection == null ? FeeRatesSelection.MEMPOOL_SIZE : feeRatesSelection);
setDefaultFeeRate(); setDefaultFeeRate();
updateFeeRateSelection(feeRatesSelection); updateFeeRateSelection(feeRatesSelection);
feeSelectionToggleGroup.selectToggle(feeRatesSelection == FeeRatesSelection.BLOCK_TARGET ? targetBlocksToggle : mempoolSizeToggle); feeSelectionToggleGroup.selectToggle(feeRatesSelection == FeeRatesSelection.BLOCK_TARGET ? targetBlocksToggle : mempoolSizeToggle);