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