qml: add final/rbf to txdetails
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user