fix: abort signing thread if wallet is watching only
This commit is contained in:
parent
9a3ca0dc31
commit
101fe08ac8
|
@ -1053,6 +1053,8 @@ class ElectrumWindow(QMainWindow):
|
|||
|
||||
# sign the tx
|
||||
def sign_thread():
|
||||
if self.wallet.is_watching_only():
|
||||
return tx
|
||||
keypairs = {}
|
||||
try:
|
||||
self.wallet.add_keypairs(tx, keypairs, password)
|
||||
|
|
Loading…
Reference in New Issue