1
0

confirm_tx_dialog: Use future tense in warnings + minor fix

This commit is contained in:
ThomasV
2023-03-09 14:40:08 +01:00
parent c449c8eda8
commit b960433c60

View File

@@ -569,11 +569,11 @@ class TxEditor(WindowModalDialog):
else:
warnings.append(long_warning)
# warn if spending unconf
if any(txin.block_height<=0 for txin in self.tx.inputs()):
warnings.append(_('This transaction spends unconfirmed coins.'))
if any((txin.block_height is not None and txin.block_height<=0) for txin in self.tx.inputs()):
warnings.append(_('This transaction will spend unconfirmed coins.'))
# warn if we merge from mempool
if self.tx.rbf_merge_txid:
warnings.append(_('This payment was merged with another existing transaction.'))
warnings.append(_('This payment will be merged with another existing transaction.'))
# warn if we use multiple change outputs
num_change = sum(int(o.is_change) for o in self.tx.outputs())
if num_change > 1: