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

This commit is contained in:
SomberNight 2020-01-21 15:12:25 +01:00
parent cb41a0fe89
commit 2880c26d87
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

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