Skip to content

Commit e5114da

Browse files
committed
fix: coin selection with include_unsafe option should respect nCoinType
1 parent a82d33e commit e5114da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3041,7 +3041,7 @@ bool CWallet::SelectCoins(const std::vector<COutput>& vAvailableCoins, const CAm
30413041
if (coin_control.m_include_unsafe_inputs
30423042
&& SelectCoinsMinConf(value_to_select,
30433043
CoinEligibilityFilter(0 /* conf_mine */, 0 /* conf_theirs */, max_ancestors-1, max_descendants-1, true /* include_partial_groups */),
3044-
vCoins, setCoinsRet, nValueRet, coin_selection_params, bnb_used)) {
3044+
vCoins, setCoinsRet, nValueRet, coin_selection_params, bnb_used, nCoinType)) {
30453045
return true;
30463046
}
30473047
// Try with unlimited ancestors/descendants. The transaction will still need to meet

0 commit comments

Comments
 (0)