1
0

RBF dialog: do not decrease payment for swap funding transactions.

This commit is contained in:
ThomasV
2023-02-10 16:30:08 +01:00
parent e9ad9986d7
commit f617887509
3 changed files with 18 additions and 7 deletions

View File

@@ -58,6 +58,9 @@ class _BaseRBFDialog(TxEditor):
if len(invoices) == 1 and len(invoices[0].outputs) == 1:
if invoices[0].outputs[0].value == '!':
self.set_decrease_payment()
# do not decrease payment if it is a swap
if self.wallet.get_swap_by_funding_tx(self.old_tx):
self.method_combo.setEnabled(False)
def create_grid(self):
self.method_label = QLabel(_('Method') + ':')