SomberNight 7 years ago
parent
commit
e5f239dd28
  1. 3
      lib/transaction.py

3
lib/transaction.py

@ -729,7 +729,8 @@ class Transaction:
@classmethod
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
def is_segwit_inputtype(cls, txin_type):

Loading…
Cancel
Save