|
|
|
@ -1561,12 +1561,13 @@ 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) |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
self.broadcast_transaction(tx) |
|
|
|
self.broadcast_transaction(tx) |
|
|
|
|
|
|
|
|
|
|
|
@protected |
|
|
|
@protected |
|
|
|
|