1
0

qml: add txid not empty assert to removeLocalTx. ref #8775

This commit is contained in:
Sander van Grieken
2024-01-04 13:08:17 +01:00
parent 88058df409
commit 313b79cfaf

View File

@@ -441,9 +441,10 @@ class QETxDetails(QObject, QtEventListener):
@pyqtSlot()
@pyqtSlot(bool)
def removeLocalTx(self, confirm = False):
assert self._can_remove
def removeLocalTx(self, confirm=False):
assert self._can_remove, 'cannot remove'
txid = self._txid
assert txid, 'txid unset'
if not confirm:
num_child_txs = len(self._wallet.wallet.adb.get_depending_transactions(txid))