mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 15:31:31 +00:00
Merge branch 'master' of github.com:spesmilo/electrum
This commit is contained in:
commit
6fda3733e4
2 changed files with 4 additions and 2 deletions
|
@ -982,10 +982,10 @@ class Network(util.DaemonThread):
|
||||||
filename = b.path()
|
filename = b.path()
|
||||||
def download_thread():
|
def download_thread():
|
||||||
try:
|
try:
|
||||||
import urllib, socket
|
import urllib.request, socket
|
||||||
socket.setdefaulttimeout(30)
|
socket.setdefaulttimeout(30)
|
||||||
self.print_error("downloading ", bitcoin.HEADERS_URL)
|
self.print_error("downloading ", bitcoin.HEADERS_URL)
|
||||||
urllib.urlretrieve(bitcoin.HEADERS_URL, filename + '.tmp')
|
urllib.request.urlretrieve(bitcoin.HEADERS_URL, filename + '.tmp')
|
||||||
os.rename(filename + '.tmp', filename)
|
os.rename(filename + '.tmp', filename)
|
||||||
self.print_error("done.")
|
self.print_error("done.")
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
|
@ -591,6 +591,8 @@ class Transaction:
|
||||||
return addr
|
return addr
|
||||||
elif output_type == TYPE_ADDRESS:
|
elif output_type == TYPE_ADDRESS:
|
||||||
return bitcoin.address_to_script(addr)
|
return bitcoin.address_to_script(addr)
|
||||||
|
elif output_type == TYPE_PUBKEY:
|
||||||
|
return addr
|
||||||
else:
|
else:
|
||||||
raise TypeError('Unknown output type')
|
raise TypeError('Unknown output type')
|
||||||
return script
|
return script
|
||||||
|
|
Loading…
Add table
Reference in a new issue