mirror of
https://git.wownero.com/wownero/wownero.git
synced 2025-01-24 07:08:35 +00:00
ringct: save 3 bytes on bulletproof size
Found by luigi1111
This commit is contained in:
parent
b5c9aed261
commit
7057806c49
@ -319,6 +319,9 @@ namespace rct {
|
|||||||
if (type == RCTTypeBulletproof || type == RCTTypeBulletproof2)
|
if (type == RCTTypeBulletproof || type == RCTTypeBulletproof2)
|
||||||
{
|
{
|
||||||
uint32_t nbp = bulletproofs.size();
|
uint32_t nbp = bulletproofs.size();
|
||||||
|
if (type == RCTTypeBulletproof2)
|
||||||
|
VARINT_FIELD(nbp)
|
||||||
|
else
|
||||||
FIELD(nbp)
|
FIELD(nbp)
|
||||||
ar.tag("bp");
|
ar.tag("bp");
|
||||||
ar.begin_array();
|
ar.begin_array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user