Merge pull request #4366

67a56a9f rctTypes: fix incorrect serialization (stoffu)
This commit is contained in:
Riccardo Spagni 2018-09-18 17:59:20 +02:00
commit 68dcf73de2
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -313,10 +313,10 @@ namespace rct {
return false; return false;
if (type == RCTTypeBulletproof) if (type == RCTTypeBulletproof)
{ {
ar.tag("bp");
ar.begin_array();
uint32_t nbp = bulletproofs.size(); uint32_t nbp = bulletproofs.size();
FIELD(nbp) FIELD(nbp)
ar.tag("bp");
ar.begin_array();
if (nbp > outputs) if (nbp > outputs)
return false; return false;
PREPARE_CUSTOM_VECTOR_SERIALIZATION(nbp, bulletproofs); PREPARE_CUSTOM_VECTOR_SERIALIZATION(nbp, bulletproofs);