qml: add txid not empty assert to removeLocalTx. ref #8775
This commit is contained in:
@@ -441,9 +441,10 @@ class QETxDetails(QObject, QtEventListener):
|
|||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
@pyqtSlot(bool)
|
@pyqtSlot(bool)
|
||||||
def removeLocalTx(self, confirm = False):
|
def removeLocalTx(self, confirm=False):
|
||||||
assert self._can_remove
|
assert self._can_remove, 'cannot remove'
|
||||||
txid = self._txid
|
txid = self._txid
|
||||||
|
assert txid, 'txid unset'
|
||||||
|
|
||||||
if not confirm:
|
if not confirm:
|
||||||
num_child_txs = len(self._wallet.wallet.adb.get_depending_transactions(txid))
|
num_child_txs = len(self._wallet.wallet.adb.get_depending_transactions(txid))
|
||||||
|
|||||||
Reference in New Issue
Block a user