ringct: save 3 bytes on bulletproof size

Found by luigi1111
release-v0.5.1
moneromooo-monero 5 years ago committed by wowario
parent b5c9aed261
commit 7057806c49
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

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

Loading…
Cancel
Save