Skip to content

Commit

Permalink
xmr.serialize: bulletproof fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Aug 19, 2018
1 parent 1ee7737 commit 49c2597
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apps/monero/xmr/serialize_messages/tx_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ async def serialize_rctsig_prunable(self, ar, type, inputs, outputs, mixin):
raise ValueError("Unknown type")

if type == RctType.SimpleBulletproof or type == RctType.FullBulletproof:
if len(self.bulletproofs) != outputs:
raise ValueError("Bulletproofs size mismatch")

await ar.prepare_container(
outputs, eref(self, "bulletproofs"), elem_type=Bulletproof
)
if len(self.bulletproofs) != outputs:
raise ValueError("Bulletproofs size mismatch")

for i in range(len(self.bulletproofs)):
await ar.field(elem=eref(self.bulletproofs, i), elem_type=Bulletproof)

Expand Down

0 comments on commit 49c2597

Please sign in to comment.