diff options
author | S3RK <1466284+S3RK@users.noreply.github.com> | 2022-07-06 09:18:17 +0200 |
---|---|---|
committer | S3RK <1466284+S3RK@users.noreply.github.com> | 2022-08-15 09:34:38 +0200 |
commit | f8e796348b644c011ad9a8312356d4426c16cc4b (patch) | |
tree | 290d1c594b6a5fe25576bc5426af6f38c4450dad /src/wallet/spend.cpp | |
parent | 06f558e4e2164d1916f258c731efe4586728a23b (diff) |
wallet: add SelectionResult::Merge
Diffstat (limited to 'src/wallet/spend.cpp')
-rw-r--r-- | src/wallet/spend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index aed6dc89d2..223377cf0e 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -667,7 +667,7 @@ std::optional<SelectionResult> SelectCoins(const CWallet& wallet, CoinsResult& a // Add preset inputs to result res->AddInput(preset_inputs); - if (res->m_algo == SelectionAlgorithm::MANUAL) { + if (res->GetAlgo() == SelectionAlgorithm::MANUAL) { res->ComputeAndSetWaste(coin_selection_params.m_cost_of_change); } @@ -890,7 +890,7 @@ static util::Result<CreatedTransactionResult> CreateTransactionInternal( if (!result) { return util::Error{_("Insufficient funds")}; } - TRACE5(coin_selection, selected_coins, wallet.GetName().c_str(), GetAlgorithmName(result->m_algo).c_str(), result->m_target, result->GetWaste(), result->GetSelectedValue()); + TRACE5(coin_selection, selected_coins, wallet.GetName().c_str(), GetAlgorithmName(result->GetAlgo()).c_str(), result->GetTarget(), result->GetWaste(), result->GetSelectedValue()); // Always make a change output // We will reduce the fee from this change output later, and remove the output if it is too small. |