carrot_impl: make multiple tx transfer proposals at once

This commit is contained in:
jeffro256
2025-04-28 12:32:54 -05:00
committed by akildemir
parent 8ad1727ea7
commit 29f9a4d679
3 changed files with 77 additions and 145 deletions

View File

@@ -158,7 +158,7 @@ TEST(wallet_tx_builder, make_carrot_transaction_proposal_wallet2_transfer_1)
const uint64_t top_block_index = std::max(transfers.front().m_block_height, transfers.back().m_block_height)
+ CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE;
const carrot::CarrotTransactionProposalV1 tx_proposal = tools::wallet::make_carrot_transaction_proposal_wallet2_transfer(
const std::vector<carrot::CarrotTransactionProposalV1> tx_proposals = tools::wallet::make_carrot_transaction_proposals_wallet2_transfer(
transfers,
/*subaddress_map=*/{},
dsts,
@@ -168,9 +168,13 @@ TEST(wallet_tx_builder, make_carrot_transaction_proposal_wallet2_transfer_1)
/*subaddr_indices=*/{},
/*ignore_above=*/MONEY_SUPPLY,
/*ignore_below=*/0,
{},
top_block_index,
alice);
ASSERT_EQ(1, tx_proposals.size());
const carrot::CarrotTransactionProposalV1 tx_proposal = tx_proposals.at(0);
std::vector<crypto::key_image> expected_key_images{
transfers.front().m_key_image,
transfers.back().m_key_image};