qt broadcast tx: don't complain about being "offline" for partial tx
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user