Skip to content

Commit

Permalink
Namecoin: Make Qt GUI update queued transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Oct 17, 2018
1 parent 5455a4b commit bf407cb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions electrum_nmc/gui/qt/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ def on_network(self, event, *args):
elif event == 'blockchain_updated':
# to update number of confirmations in history
self.need_update.set()
# Also handle in GUI thread
self.network_signal.emit(event, args)
elif event == 'new_transaction':
wallet, tx = args
if wallet == self.wallet:
Expand Down Expand Up @@ -343,6 +345,8 @@ def on_network_qt(self, event, args=None):
self.do_update_fee()
# todo: update only unconfirmed tx
self.history_list.update()
elif event == 'blockchain_updated':
self.update_queued_transactions()
else:
self.print_error("unexpected network_qt signal:", event, args)

Expand Down Expand Up @@ -3287,3 +3291,9 @@ def create_names_tab(self):
w = QWidget()
w.setLayout(vbox)
return w

def update_queued_transactions(self):
updatequeuedtransactions = self.console.namespace.get('updatequeuedtransactions')
status, msg = updatequeuedtransactions()
if not status:
self.show_error(_("Error broadcasting the following queued transactions (you'll need to manually broadcast them): ") + str(msg))

0 comments on commit bf407cb

Please sign in to comment.