Skip to content

Commit 4e4a774

Browse files
committed
clean-up: use is_segwit_input in wallet.py
1 parent d403c59 commit 4e4a774

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/wallet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ def add_input_info(self, txin):
10961096
if self.is_mine(address):
10971097
txin['type'] = self.get_txin_type(address)
10981098
# segwit needs value to sign
1099-
if txin.get('value') is None and txin['type'] in ['p2wpkh', 'p2wsh', 'p2wpkh-p2sh', 'p2wsh-p2sh']:
1099+
if txin.get('value') is None and Transaction.is_segwit_input(txin):
11001100
received, spent = self.get_addr_io(address)
11011101
item = received.get(txin['prevout_hash']+':%d'%txin['prevout_n'])
11021102
tx_height, value, is_cb = item

0 commit comments

Comments
 (0)