add txin_type in add_input_info, remove inefficient search
This commit is contained in:
@@ -474,6 +474,7 @@ def deserialize(raw):
|
||||
for i in range(n_vin):
|
||||
txin = d['inputs'][i]
|
||||
parse_witness(vds, txin)
|
||||
# segwit-native script
|
||||
if not txin.get('scriptSig'):
|
||||
if txin['num_sig'] == 1:
|
||||
txin['type'] = 'p2wpkh'
|
||||
|
||||
Reference in New Issue
Block a user