carrot_impl: sweep all below

This commit is contained in:
jeffro256
2025-05-04 01:14:21 -05:00
committed by akildemir
parent 650b6b8bd4
commit 8f699871d3
2 changed files with 6 additions and 1 deletions

View File

@@ -521,6 +521,7 @@ std::vector<carrot::CarrotTransactionProposalV1> make_carrot_transaction_proposa
std::vector<carrot::CarrotTransactionProposalV1> make_carrot_transaction_proposals_wallet2_sweep_all(
const wallet2::transfer_container &transfers,
const std::unordered_map<crypto::public_key, cryptonote::subaddress_index> &subaddress_map,
const rct::xmr_amount only_below,
const cryptonote::account_public_address &address,
const bool is_subaddress,
const size_t n_dests,
@@ -543,7 +544,7 @@ std::vector<carrot::CarrotTransactionProposalV1> make_carrot_transaction_proposa
if (!is_transfer_usable_for_input_selection(td,
subaddr_account,
subaddr_indices,
MONEY_SUPPLY,
only_below ? only_below : MONEY_SUPPLY,
0,
top_block_index))
continue;
@@ -574,6 +575,7 @@ std::vector<carrot::CarrotTransactionProposalV1> make_carrot_transaction_proposa
//-------------------------------------------------------------------------------------------------------------------
std::vector<carrot::CarrotTransactionProposalV1> make_carrot_transaction_proposals_wallet2_sweep_all(
wallet2 &w,
const rct::xmr_amount only_below,
const cryptonote::account_public_address &address,
const bool is_subaddress,
const size_t n_dests,
@@ -595,6 +597,7 @@ std::vector<carrot::CarrotTransactionProposalV1> make_carrot_transaction_proposa
return make_carrot_transaction_proposals_wallet2_sweep_all(
transfers,
w.get_subaddress_map_ref(),
only_below,
address,
is_subaddress,
n_dests,

View File

@@ -103,6 +103,7 @@ std::vector<carrot::CarrotTransactionProposalV1> make_carrot_transaction_proposa
std::vector<carrot::CarrotTransactionProposalV1> make_carrot_transaction_proposals_wallet2_sweep_all(
const wallet2::transfer_container &transfers,
const std::unordered_map<crypto::public_key, cryptonote::subaddress_index> &subaddress_map,
const rct::xmr_amount only_below,
const cryptonote::account_public_address &address,
const bool is_subaddress,
const size_t n_dests,
@@ -114,6 +115,7 @@ std::vector<carrot::CarrotTransactionProposalV1> make_carrot_transaction_proposa
const cryptonote::account_keys &acc_keys);
std::vector<carrot::CarrotTransactionProposalV1> make_carrot_transaction_proposals_wallet2_sweep_all(
wallet2 &w,
const rct::xmr_amount only_below,
const cryptonote::account_public_address &address,
const bool is_subaddress,
const size_t n_dests,