mirror of
https://github.com/monero-project/monero.git
synced 2025-12-11 16:02:34 +01:00
ringct: save 3 bytes on bulletproof size
Found by luigi1111
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user