1
0

qml: add final/rbf to txdetails

This commit is contained in:
Sander van Grieken
2022-11-22 12:41:57 +01:00
parent cccd5ff19b
commit 9c82a94ad0
2 changed files with 15 additions and 0 deletions

View File

@@ -200,6 +200,15 @@ Pane {
text: txdetails.txpos
}
Label {
text: qsTr('RbF')
color: Material.accentColor
}
Label {
text: txdetails.isFinal ? qsTr('No') : qsTr('Yes')
}
Label {
text: qsTr('Label')
Layout.columnSpan: 2

View File

@@ -39,6 +39,7 @@ class QETxDetails(QObject):
_is_unrelated = False
_is_complete = False
_is_mined = False
_is_final = False
_mempool_depth = ''
@@ -200,6 +201,10 @@ class QETxDetails(QObject):
def isComplete(self):
return self._is_complete
@pyqtProperty(bool, notify=detailsChanged)
def isFinal(self):
return self._is_final
def update(self):
if self._wallet is None:
self._logger.error('wallet undefined')
@@ -250,6 +255,7 @@ class QETxDetails(QObject):
self._lnamount.satsInt = 0
self._is_complete = self._tx.is_complete()
self._is_final = self._tx.is_final()
self._is_unrelated = txinfo.amount is None and self._lnamount.isEmpty
self._is_lightning_funding_tx = txinfo.is_lightning_funding_tx
self._can_bump = txinfo.can_bump