add coin selection filter to exclude immature coinbase outputs

This commit is contained in:
Craig Raw 2021-10-16 11:10:24 +02:00
parent 2debc07375
commit 237f97852d
2 changed files with 3 additions and 3 deletions

2
drongo

@ -1 +1 @@
Subproject commit c04c24945000f8f3c702801cea1c9921cc60cbbd
Subproject commit 57290a20a143bc0f0d8440fb3c14592c2e204e6b

View file

@ -662,10 +662,10 @@ public class SendController extends WalletFormController implements Initializabl
private List<UtxoFilter> getUtxoFilters() {
UtxoFilter utxoFilter = utxoFilterProperty.get();
if(utxoFilter != null) {
return List.of(utxoFilter, new FrozenUtxoFilter());
return List.of(utxoFilter, new FrozenUtxoFilter(), new CoinbaseUtxoFilter(getWalletForm().getWallet()));
}
return List.of(new FrozenUtxoFilter());
return List.of(new FrozenUtxoFilter(), new CoinbaseUtxoFilter(getWalletForm().getWallet()));
}
private void updateFeeRateSelection(FeeRatesSelection feeRatesSelection) {