You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copying util::Result values is less efficient than moving them because they
allocate memory and contain strings. Also this is needed to avoid compile
errors in the next commit which adds a std::unique_ptr member to util::Result
which implicity disables copying.
if (CAmount total_amount = available_coins.GetTotalAmount() - total_discarded < value_to_select) {
867
867
// Special case, too-long-mempool cluster.
868
868
if (total_amount + total_unconf_long_chain > value_to_select) {
869
-
return util::Result<SelectionResult>({_("Unconfirmed UTXOs are available, but spending them creates a chain of transactions that will be rejected by the mempool")});
869
+
return util::Error{_("Unconfirmed UTXOs are available, but spending them creates a chain of transactions that will be rejected by the mempool")};
870
870
}
871
871
return util::Result<SelectionResult>(util::Error()); // General "Insufficient Funds"
0 commit comments