// Remove this utxo from the curr_available_value utxo amount
// Remove this utxo from the curr_available_value utxo amount
curr_available_value-=utxo.GetSelectionAmount();
curr_available_value-=utxo.GetSelectionAmount();
// Avoid searching a branch if the previous UTXO has the same value and same waste and was excluded. Since the ratio of fee to
// long term fee is the same, we only need to check if one of those values match in order to know that the waste is the same.
if(curr_selection.empty()||
if(curr_selection.empty()||
// The previous index is included and therefore not relevant for exclusion shortcut
// The previous index is included and therefore not relevant for exclusion shortcut
(utxo_pool_index-1)==curr_selection.back()||
(utxo_pool_index-1)==curr_selection.back()||
// Avoid searching a branch if the previous UTXO has the same value and same waste and was excluded.
// Since the ratio of fee to long term fee is the same, we only need to check if one of those values match in order to know that the waste is the same.