fix issue #961
This commit is contained in:
@@ -452,7 +452,8 @@ def parse_input(vds):
|
|||||||
d = {}
|
d = {}
|
||||||
prevout_hash = hash_encode(vds.read_bytes(32))
|
prevout_hash = hash_encode(vds.read_bytes(32))
|
||||||
prevout_n = vds.read_uint32()
|
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()
|
sequence = vds.read_uint32()
|
||||||
if prevout_hash == '00'*32:
|
if prevout_hash == '00'*32:
|
||||||
d['is_coinbase'] = True
|
d['is_coinbase'] = True
|
||||||
|
|||||||
@@ -321,7 +321,7 @@ class TrezorWallet(NewWallet):
|
|||||||
txinputtype.prev_index = prev_index
|
txinputtype.prev_index = prev_index
|
||||||
|
|
||||||
if 'scriptSig' in txinput:
|
if 'scriptSig' in txinput:
|
||||||
script_sig = txinput['scriptSig']
|
script_sig = txinput['scriptSig'].decode('hex')
|
||||||
txinputtype.script_sig = script_sig
|
txinputtype.script_sig = script_sig
|
||||||
|
|
||||||
if 'sequence' in txinput:
|
if 'sequence' in txinput:
|
||||||
|
|||||||
Reference in New Issue
Block a user