fix issue #961
This commit is contained in:
parent
ceaa48fd73
commit
477b7c3402
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue