ringct: save 3 bytes on bulletproof size

Found by luigi1111
This commit is contained in:
moneromooo-monero 2019-01-06 13:48:42 +00:00
parent f7f6760052
commit 77f8f45459
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 4 additions and 1 deletions

View File

@ -319,7 +319,10 @@ namespace rct {
if (type == RCTTypeBulletproof || type == RCTTypeBulletproof2)
{
uint32_t nbp = bulletproofs.size();
FIELD(nbp)
if (type == RCTTypeBulletproof2)
VARINT_FIELD(nbp)
else
FIELD(nbp)
ar.tag("bp");
ar.begin_array();
if (nbp > outputs)