Closes #13549.
As pointed by @MarcoFalke:
SelectCoinsMinConfshould always succeed as there are enough coins in the wallet.- Removed creating the coins in the wallet.
Closes #13549.
As pointed by @MarcoFalke:
SelectCoinsMinConf should always succeed as there are enough coins in the wallet.55 | bool bnb_used; 56 | CoinEligibilityFilter filter_standard(1, 6, 0); 57 | - CoinSelectionParams coin_selection_params(false, 34, 148, CFeeRate(0), 0); 58 | - bool success = wallet.SelectCoinsMinConf(1003 * COIN, filter_standard, vCoins, setCoinsRet, nValueRet, coin_selection_params, bnb_used) 59 | - || wallet.SelectCoinsMinConf(1003 * COIN, filter_standard, vCoins, setCoinsRet, nValueRet, coin_selection_params, bnb_used); 60 | + CoinSelectionParams coin_selection_params(true, 34, 148, CFeeRate(0), 0);
can be const and moved out of the loop. (Same true for all lines above this one)
utACK 3282c66180f904157e3fed6905f7c04be93a5a55
@MarcoFalke force pushed with your suggestion.
utACK c2e4fc84ecff72c36f6adc1292ba8242fc3cbaee
utACK c2e4fc84ecff72c36f6adc1292ba8242fc3cbaee
Seems there is also a difference between gcc and clang:
