From d8a21933d6d01ec5a3d6bb6bc1dfbdf6309eefde Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 22 Feb 2024 18:18:10 +0100 Subject: [PATCH] wallet: sweep_below fixed --- src/wallet/wallet2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index d94b717a..ad4df265 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -7525,8 +7525,8 @@ void wallet2::sweep_below(size_t fake_outs_count, const currency::account_public assets_selection_context needed_money_map; needed_money_map[currency::native_coin_asset_id] = {}; - std::vector dsts({ tx_destination_entry(amount_swept - fee, destination_addr) }); - prepare_tx_destinations(needed_money_map, get_current_split_strategy(), tools::tx_dust_policy(), ftp.prepared_destinations, ftp.flags, dsts); + const std::vector dsts({ tx_destination_entry(amount_swept - fee, destination_addr) }); + prepare_tx_destinations(needed_money_map, get_current_split_strategy(), tools::tx_dust_policy(), dsts, ftp.flags, ftp.prepared_destinations); currency::transaction tx = AUTO_VAL_INIT(tx); crypto::secret_key tx_key = AUTO_VAL_INIT(tx_key);