all pre-carrot txs work; Add support for return txs post-carrot.

This commit is contained in:
akildemir
2025-07-11 12:08:44 +03:00
parent 78232ff3a8
commit dd39f94ca6
27 changed files with 422 additions and 330 deletions

View File

@@ -339,6 +339,7 @@ TEST(carrot_fcmp, receive_scan_spend_and_verify_serialized_carrot_tx)
/*selfsend_payment_proposals=*/{},
fee_per_weight,
/*extra=*/{},
cryptonote::transaction_type::TRANSFER,
[&input_info_by_ki]
(
const boost::multiprecision::int128_t&,
@@ -385,6 +386,7 @@ TEST(carrot_fcmp, receive_scan_spend_and_verify_serialized_carrot_tx)
tx_proposal.key_images_sorted.at(0),
output_enote_proposals,
encrypted_payment_id,
cryptonote::transaction_type::TRANSFER,
change_index,
normal_payments_indices);
@@ -415,7 +417,6 @@ TEST(carrot_fcmp, receive_scan_spend_and_verify_serialized_carrot_tx)
tx_proposal.key_images_sorted,
tx_proposal.sources,
tx_proposal.fee,
0, // change_index
{}, // change_masks
encrypted_payment_id);