ringct: add check for destinations/amount size being equal

release-v0.4.0.1
moneromooo-monero 8 years ago
parent e816a09292
commit 63856cad29
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -470,6 +470,7 @@ namespace rct {
CHECK_AND_ASSERT_THROW_MES(mixin >= 0, "Mixin must be positive");
CHECK_AND_ASSERT_THROW_MES(amounts.size() > 0, "Amounts must not be empty");
CHECK_AND_ASSERT_THROW_MES(inSk.size() == inPk.size(), "Different number of public/private keys");
CHECK_AND_ASSERT_THROW_MES(amounts.size() == destinations.size(), "Different number of amounts/destinations");
rctSig rv;
rv.outPk.resize(destinations.size());

Loading…
Cancel
Save