1
0

Set status of onchain invoices to PR_INFLIGHT while tx is being broadcast

This commit is contained in:
ThomasV
2023-04-04 16:55:06 +02:00
parent cf3613b7d5
commit 159646fe54
5 changed files with 42 additions and 14 deletions

View File

@@ -761,7 +761,10 @@ class SendTab(QWidget, MessageBoxMixin, Logger):
# Capture current TL window; override might be removed on return
parent = self.window.top_level_window(lambda win: isinstance(win, MessageBoxMixin))
self.wallet.set_broadcasting(tx, True)
def broadcast_done(result):
self.wallet.set_broadcasting(tx, False)
# GUI thread
if result:
success, msg = result