From e5114da32536f977e69f6a0d531c3ca45dafdf07 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 2 Dec 2024 17:26:26 +0300 Subject: [PATCH] fix: coin selection with `include_unsafe` option should respect `nCoinType` --- src/wallet/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 346a2ec1999bd..b6801f795e0b6 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3041,7 +3041,7 @@ bool CWallet::SelectCoins(const std::vector& vAvailableCoins, const CAm if (coin_control.m_include_unsafe_inputs && SelectCoinsMinConf(value_to_select, CoinEligibilityFilter(0 /* conf_mine */, 0 /* conf_theirs */, max_ancestors-1, max_descendants-1, true /* include_partial_groups */), - vCoins, setCoinsRet, nValueRet, coin_selection_params, bnb_used)) { + vCoins, setCoinsRet, nValueRet, coin_selection_params, bnb_used, nCoinType)) { return true; } // Try with unlimited ancestors/descendants. The transaction will still need to meet