mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
ringct: add check for destinations/amount size being equal
This commit is contained in:
parent
e816a09292
commit
63856cad29
@ -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…
Reference in New Issue
Block a user