tclean-up: use is_segwit_input in wallet.py - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4e4a7746fcb1af36d9d8bd92a4587d0056464599 DIR parent d403c59ad715f614a63da24f0073571102707833 HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 11 Dec 2017 01:49:38 +0100 clean-up: use is_segwit_input in wallet.py Diffstat: M lib/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -1096,7 +1096,7 @@ class Abstract_Wallet(PrintError): if self.is_mine(address): txin['type'] = self.get_txin_type(address) # segwit needs value to sign - if txin.get('value') is None and txin['type'] in ['p2wpkh', 'p2wsh', 'p2wpkh-p2sh', 'p2wsh-p2sh']: + if txin.get('value') is None and Transaction.is_segwit_input(txin): received, spent = self.get_addr_io(address) item = received.get(txin['prevout_hash']+':%d'%txin['prevout_n']) tx_height, value, is_cb = item