File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,9 @@ void make_unsigned_transaction(std::vector<CarrotPaymentProposalV1> &normal_paym
118
118
}
119
119
}
120
120
121
+ // generate random dummy encrypted payment ID for if none of the normal payment proposals are integrated
122
+ const encrypted_payment_id_t dummy_encrypted_payment_id = gen_payment_id ();
123
+
121
124
// calculate size of tx.extra
122
125
const size_t tx_extra_size = get_carrot_default_tx_extra_size (num_outs);
123
126
@@ -173,6 +176,7 @@ void make_unsigned_transaction(std::vector<CarrotPaymentProposalV1> &normal_paym
173
176
encrypted_payment_id_t encrypted_payment_id;
174
177
get_output_enote_proposals (normal_payment_proposals_inout,
175
178
selfsend_payment_proposals_inout,
179
+ dummy_encrypted_payment_id,
176
180
s_view_balance_dev,
177
181
k_view_dev,
178
182
account_spend_pubkey,
Original file line number Diff line number Diff line change @@ -534,6 +534,7 @@ static void subtest_multi_account_transfer_over_transaction(const unittest_trans
534
534
parsed_key_images,
535
535
parsed_fee,
536
536
parsed_encrypted_payment_id));
537
+ ASSERT_TRUE (parsed_encrypted_payment_id);
537
538
538
539
// sanity check that the enotes and pid_enc loaded from the transaction are equal to the enotes
539
540
// and pic_enc returned from get_output_enote_proposals() when called with the modified payment
@@ -543,13 +544,13 @@ static void subtest_multi_account_transfer_over_transaction(const unittest_trans
543
544
encrypted_payment_id_t rederived_encrypted_payment_id;
544
545
get_output_enote_proposals (modified_normal_payment_proposals,
545
546
modified_selfsend_payment_proposals,
547
+ *parsed_encrypted_payment_id,
546
548
ss_keys.get_view_balance_device (),
547
549
&ss_keys.k_view_dev ,
548
550
ss_keys.account_spend_pubkey ,
549
551
parsed_key_images.at (0 ),
550
552
rederived_output_enote_proposals,
551
553
rederived_encrypted_payment_id);
552
- ASSERT_TRUE (parsed_encrypted_payment_id);
553
554
EXPECT_EQ (*parsed_encrypted_payment_id, rederived_encrypted_payment_id);
554
555
ASSERT_EQ (parsed_enotes.size (), rederived_output_enote_proposals.size ());
555
556
for (size_t enote_idx = 0 ; enote_idx < parsed_enotes.size (); ++enote_idx)
You can’t perform that action at this time.
0 commit comments