992 | @@ -993,12 +993,13 @@ std::optional<CreatedTransactionResult> CreateTransaction(
993 | tmp_cc.m_avoid_partial_spends = true;
994 | bilingual_str error2; // fired and forgotten; if an error occurs, we discard the results
995 | std::optional<CreatedTransactionResult> txr_grouped = CreateTransactionInternal(wallet, vecSend, change_pos, error2, tmp_cc, fee_calc_out, sign);
996 | + // if fee of this alternative one is within the range of the max fee, we use this one
997 | + const bool use_aps{txr_grouped.has_value() ? (txr_grouped->fee <= txr_ungrouped->fee + wallet.m_max_aps_fee) : false};
998 | + TRACE5(coin_selection, aps_create_tx_internal, wallet.GetName().c_str(), use_aps, txr_grouped.has_value(),
999 | + txr_grouped.has_value() ? txr_grouped->fee : 0, txr_grouped.has_value() ? txr_grouped->change_pos : 0);
same code nit here, I don't see a reason to use txr_grouped.has_value() when there is a cleaner way of doing it with the bool() operator (by default std::optional is set to nullopt).