From 237f97852d2a37688c9b415b0a48fc8a1f6f5ab5 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Sat, 16 Oct 2021 11:10:24 +0200 Subject: [PATCH] add coin selection filter to exclude immature coinbase outputs --- drongo | 2 +- .../java/com/sparrowwallet/sparrow/wallet/SendController.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drongo b/drongo index c04c2494..57290a20 160000 --- a/drongo +++ b/drongo @@ -1 +1 @@ -Subproject commit c04c24945000f8f3c702801cea1c9921cc60cbbd +Subproject commit 57290a20a143bc0f0d8440fb3c14592c2e204e6b diff --git a/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java b/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java index 3be1f674..69c37704 100644 --- a/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java +++ b/src/main/java/com/sparrowwallet/sparrow/wallet/SendController.java @@ -662,10 +662,10 @@ public class SendController extends WalletFormController implements Initializabl private List 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) {