Browse Source

wallet.add_input_info: also add block_height if known

The coin_chooser requires the block_height field (to prioritise confirmed utxos).
patch-4
SomberNight 2 years ago
parent
commit
a15e383dbb
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 1
      electrum/wallet.py

1
electrum/wallet.py

@ -2187,6 +2187,7 @@ class Abstract_Wallet(ABC, Logger, EventListener):
except UnknownTxinType:
pass
self._add_input_sig_info(txin, address, only_der_suffix=only_der_suffix)
txin.block_height = self.adb.get_tx_height(txin.prevout.txid.hex()).height
def can_sign(self, tx: Transaction) -> bool:
if not isinstance(tx, PartialTransaction):

Loading…
Cancel
Save