mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 04:45:16 +00:00
follow up to c07e956127
This commit is contained in:
parent
8eaa156595
commit
4bce96526b
1 changed files with 3 additions and 3 deletions
|
@ -6,9 +6,9 @@ from electrum.network import filter_protocol, parse_servers
|
||||||
|
|
||||||
def get_peers():
|
def get_peers():
|
||||||
# 1. start interface and wait for connection
|
# 1. start interface and wait for connection
|
||||||
interface = electrum.Interface('ecdsa.net:110:s')
|
|
||||||
q = Queue.Queue()
|
q = Queue.Queue()
|
||||||
interface.start(q)
|
interface = electrum.Interface('ecdsa.net:110:s', q)
|
||||||
|
interface.start()
|
||||||
i, r = q.get()
|
i, r = q.get()
|
||||||
if not interface.is_connected():
|
if not interface.is_connected():
|
||||||
raise BaseException("not connected")
|
raise BaseException("not connected")
|
||||||
|
|
Loading…
Add table
Reference in a new issue