1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

Prevent floating point issues when pushing output amount

This commit is contained in:
nelisky 2015-03-03 23:37:32 +00:00
parent e4429242aa
commit f3b7629a4f

View File

@ -84,7 +84,7 @@ def insight_tx(url, rawdata=False):
for vout in data['vout']:
o = t.bin_outputs.add()
o.amount = int(Decimal(vout['value']) * 100000000)
o.amount = int(Decimal(str(vout['value'])) * 100000000)
asm = vout['scriptPubKey']['asm'].split(' ')
asm = [ opcode_serialize(x) for x in asm ]
o.script_pubkey = ''.join(asm)