mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
ringct: save 3 bytes on bulletproof size
Found by luigi1111
This commit is contained in:
parent
f7f6760052
commit
77f8f45459
1 changed files with 4 additions and 1 deletions
|
@ -319,6 +319,9 @@ namespace rct {
|
|||
if (type == RCTTypeBulletproof || type == RCTTypeBulletproof2)
|
||||
{
|
||||
uint32_t nbp = bulletproofs.size();
|
||||
if (type == RCTTypeBulletproof2)
|
||||
VARINT_FIELD(nbp)
|
||||
else
|
||||
FIELD(nbp)
|
||||
ar.tag("bp");
|
||||
ar.begin_array();
|
||||
|
|
Loading…
Reference in a new issue