mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 15:32:24 +00:00
ringct: save 3 bytes on bulletproof size
Found by luigi1111
This commit is contained in:
parent
f931e16c6e
commit
cdc3ccec5f
1 changed files with 4 additions and 1 deletions
|
@ -320,7 +320,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…
Reference in a new issue