From 87dd74d45cc7091e2c271adecc3239f342738976 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 15 Feb 2024 16:40:55 +0000 Subject: [PATCH] qml: QETxDetails: defer to wallet.get_tx_info() for rbf/cpfp It might make sense to allow bump_fee on a local tx, and so wallet.get_tx_info() allows it. For dscancel/cpfp, it does not allow it either. Still, I think this logic should be encapsulated in the wallet. --- electrum/gui/qml/qetxdetails.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/electrum/gui/qml/qetxdetails.py b/electrum/gui/qml/qetxdetails.py index dff08c374..ead709a30 100644 --- a/electrum/gui/qml/qetxdetails.py +++ b/electrum/gui/qml/qetxdetails.py @@ -350,10 +350,10 @@ class QETxDetails(QObject, QtEventListener): self._is_unrelated = txinfo.amount is None and self._lnamount.isEmpty self._is_lightning_funding_tx = txinfo.is_lightning_funding_tx self._can_broadcast = txinfo.can_broadcast - self._can_bump = txinfo.can_bump and not txinfo.can_remove - self._can_dscancel = txinfo.can_dscancel and not txinfo.can_remove - self._can_cpfp = txinfo.can_cpfp and not txinfo.can_remove - self._can_save_as_local = txinfo.can_save_as_local and not txinfo.can_remove + self._can_bump = txinfo.can_bump + self._can_dscancel = txinfo.can_dscancel + self._can_cpfp = txinfo.can_cpfp + self._can_save_as_local = txinfo.can_save_as_local self._can_remove = txinfo.can_remove self._can_sign = ( not self._is_complete