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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user