mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-26 23:13:25 +00:00
12 lines
266 B
Python
Executable file
12 lines
266 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
from electrum import TcpStratumInterface
|
|
|
|
i = TcpStratumInterface('electrum.novit.ro', 50001)
|
|
i.init_socket()
|
|
i.start()
|
|
i.send([('server.peers.subscribe',[])])
|
|
|
|
while True:
|
|
r = i.responses.get(True, 100000000000)
|
|
print r.get('result')
|