mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
fix: openalias resolution unnecessarily blocks gui for some payto
This commit is contained in:
parent
2951ed5e17
commit
f492021195
2 changed files with 4 additions and 0 deletions
|
@ -606,6 +606,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||||
self.need_update.clear()
|
self.need_update.clear()
|
||||||
self.update_wallet()
|
self.update_wallet()
|
||||||
# resolve aliases
|
# resolve aliases
|
||||||
|
# FIXME this is a blocking network call that has a timeout of 5 sec
|
||||||
self.payto_e.resolve()
|
self.payto_e.resolve()
|
||||||
# update fee
|
# update fee
|
||||||
if self.require_fee_update:
|
if self.require_fee_update:
|
||||||
|
|
|
@ -278,6 +278,9 @@ class PayToEdit(ScanQRTextEdit):
|
||||||
self.previous_payto = key
|
self.previous_payto = key
|
||||||
if not (('.' in key) and (not '<' in key) and (not ' ' in key)):
|
if not (('.' in key) and (not '<' in key) and (not ' ' in key)):
|
||||||
return
|
return
|
||||||
|
parts = key.split(sep=',') # assuming single line
|
||||||
|
if parts and len(parts) > 0 and bitcoin.is_address(parts[0]):
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
data = self.win.contacts.resolve(key)
|
data = self.win.contacts.resolve(key)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Add table
Reference in a new issue