electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit e5f239dd287a72d8ac5711d31afe8e886bcb3814
parent ed686f9e0543394b7583b50aa61c2751f6b3117c
Author: SomberNight <somber.night@protonmail.com>
Date:   Tue, 30 Jan 2018 17:00:19 +0100

follow-up 70aa1f1db9ccb3954501849f9c872ab7053c8ff1

Diffstat:
Mlib/transaction.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/transaction.py b/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):