Add a define for the max number of bulletproof multi-outputs

This commit is contained in:
moneromooo-monero
2018-03-30 20:44:51 +01:00
parent 2a8fcb421b
commit 7e67c52fa2
3 changed files with 5 additions and 2 deletions

View File

@@ -762,7 +762,7 @@ namespace rct {
{
size_t batch_size = 1;
if (range_proof_type == RangeProofMultiOutputBulletproof)
while (batch_size * 2 + amounts_proved <= n_amounts && batch_size * 2 <= 16)
while (batch_size * 2 + amounts_proved <= n_amounts && batch_size * 2 <= BULLETPROOF_MAX_OUTPUTS)
batch_size *= 2;
rct::keyV C, masks;
std::vector<uint64_t> batch_amounts(batch_size);