test version
This commit is contained in:
8
util/get_consensus.py
Normal file
8
util/get_consensus.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from stem.control import Controller
|
||||
|
||||
with Controller.from_port(port = 9051) as controller:
|
||||
controller.authenticate("password")
|
||||
|
||||
print("List of relays found on the network:")
|
||||
for desc in controller.get_network_statuses():
|
||||
print("%s (%s) at %s" % (desc.nickname, desc.fingerprint, desc.address))
|
||||
Reference in New Issue
Block a user