1
0

wallet.add_input_info: also add block_height if known

The coin_chooser requires the block_height field (to prioritise confirmed utxos).
This commit is contained in:
SomberNight
2022-11-03 12:30:37 +00:00
parent 015648c4e5
commit a15e383dbb

View File

@@ -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):