Browse Source

transaction: fix regression: witness_utxo was not included in QR code

fixes #6600
patch-4
SomberNight 4 years ago
parent
commit
364fca6a58
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 73
      electrum/tests/test_wallet_vertical.py
  2. 4
      electrum/transaction.py

73
electrum/tests/test_wallet_vertical.py

File diff suppressed because one or more lines are too long

4
electrum/transaction.py

@ -1422,8 +1422,8 @@ class PartialTxInput(TxInput, PSBTSection):
def convert_utxo_to_witness_utxo(self) -> None:
if self.utxo:
self.witness_utxo = self.utxo.outputs()[self.prevout.out_idx]
self.utxo = None # type: Optional[Transaction]
self._witness_utxo = self.utxo.outputs()[self.prevout.out_idx]
self._utxo = None # type: Optional[Transaction]
def is_native_segwit(self) -> Optional[bool]:
"""Whether this input is native segwit. None means inconclusive."""

Loading…
Cancel
Save