Browse Source

fix issue #961

283
ThomasV 10 years ago
parent
commit
477b7c3402
  1. 3
      lib/transaction.py
  2. 2
      plugins/trezor.py

3
lib/transaction.py

@ -452,7 +452,8 @@ def parse_input(vds):
d = {}
prevout_hash = hash_encode(vds.read_bytes(32))
prevout_n = vds.read_uint32()
d['scriptSig'] = scriptSig = vds.read_bytes(vds.read_compact_size())
scriptSig = vds.read_bytes(vds.read_compact_size())
d['scriptSig'] = scriptSig.encode('hex')
sequence = vds.read_uint32()
if prevout_hash == '00'*32:
d['is_coinbase'] = True

2
plugins/trezor.py

@ -321,7 +321,7 @@ class TrezorWallet(NewWallet):
txinputtype.prev_index = prev_index
if 'scriptSig' in txinput:
script_sig = txinput['scriptSig']
script_sig = txinput['scriptSig'].decode('hex')
txinputtype.script_sig = script_sig
if 'sequence' in txinput:

Loading…
Cancel
Save