ringct: check the size of amount_keys is the same as destinations

This commit is contained in:
moneromooo-monero 2016-10-29 13:33:08 +01:00
parent 836669d276
commit ffd8c41f36
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 6 additions and 2 deletions

View file

@ -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);