follow-up 70aa1f1db9
This commit is contained in:
@@ -730,7 +730,8 @@ class Transaction:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_segwit_input(cls, txin):
|
def is_segwit_input(cls, txin):
|
||||||
return cls.is_segwit_inputtype(txin['type']) or bool(txin.get('witness', False))
|
has_nonzero_witness = txin.get('witness', '00') != '00'
|
||||||
|
return cls.is_segwit_inputtype(txin['type']) or has_nonzero_witness
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_segwit_inputtype(cls, txin_type):
|
def is_segwit_inputtype(cls, txin_type):
|
||||||
|
|||||||
Reference in New Issue
Block a user