mirror of
https://github.com/monero-project/monero.git
synced 2025-05-03 04:44:51 -04:00
Merge pull request #1272
48b57d8
monero.supp: valgrind suppressions file (moneromooo-monero)ffd8c41
ringct: check the size of amount_keys is the same as destinations (moneromooo-monero)836669d
ringct: always shutdown the boost io service (moneromooo-monero)
This commit is contained in:
commit
d51f1af75f
4 changed files with 19 additions and 5 deletions
|
@ -246,7 +246,6 @@ TEST(ringct, range_proofs_with_fee)
|
|||
//add txn fee for 1
|
||||
//has no corresponding destination..
|
||||
amounts.push_back(1);
|
||||
amount_keys.push_back(hash_to_scalar(zero()));
|
||||
|
||||
//add output for 12500
|
||||
amounts.push_back(12500);
|
||||
|
@ -356,10 +355,12 @@ static rct::rctSig make_sample_rct_sig(int n_inputs, const uint64_t input_amount
|
|||
|
||||
for (int n = 0; n < n_outputs; ++n) {
|
||||
amounts.push_back(output_amounts[n]);
|
||||
amount_keys.push_back(rct::hash_to_scalar(rct::zero()));
|
||||
skpkGen(Sk, Pk);
|
||||
if (n < n_outputs - 1 || !last_is_fee)
|
||||
{
|
||||
destinations.push_back(Pk);
|
||||
amount_keys.push_back(rct::hash_to_scalar(rct::zero()));
|
||||
}
|
||||
}
|
||||
|
||||
return genRct(rct::zero(), sc, pc, destinations, amounts, amount_keys, 3);;
|
||||
|
|
|
@ -559,6 +559,7 @@ TEST(Serialization, serializes_ringct_types)
|
|||
rct::keyV amount_keys;
|
||||
//add output 500
|
||||
amounts.push_back(500);
|
||||
amount_keys.push_back(rct::hash_to_scalar(rct::zero()));
|
||||
rct::keyV destinations;
|
||||
rct::key Sk, Pk;
|
||||
rct::skpkGen(Sk, Pk);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue