Browse Source

qt broadcast tx: don't complain about being "offline" for partial tx

master
SomberNight 6 years ago
parent
commit
2880c26d87
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 9
      electrum/gui/qt/main_window.py

9
electrum/gui/qt/main_window.py

@ -1561,13 +1561,14 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
d.show() d.show()
def broadcast_or_show(self, tx: Transaction): def broadcast_or_show(self, tx: Transaction):
if not tx.is_complete():
self.show_transaction(tx)
return
if not self.network: if not self.network:
self.show_error(_("You can't broadcast a transaction without a live network connection.")) self.show_error(_("You can't broadcast a transaction without a live network connection."))
self.show_transaction(tx) self.show_transaction(tx)
elif not tx.is_complete(): return
self.show_transaction(tx) self.broadcast_transaction(tx)
else:
self.broadcast_transaction(tx)
@protected @protected
def sign_tx(self, tx, *, callback, external_keypairs, password): def sign_tx(self, tx, *, callback, external_keypairs, password):

Loading…
Cancel
Save