diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-01-15 19:18:00 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-01-15 19:20:25 -0500 |
commit | 2dd23086f13ecfc9843a9612e208a3592ac46141 (patch) | |
tree | c450632e6e72db71f1faee91bee9c8b1fb71d2d3 /scripts/maint/lookupFallbackDirContact.py | |
parent | a9c80788d76f1ebd9fd79fe893ca57ae2ba483d6 (diff) | |
download | tor-2dd23086f13ecfc9843a9612e208a3592ac46141.tar.gz tor-2dd23086f13ecfc9843a9612e208a3592ac46141.zip |
Remove fallback scripts and whitelist
They have been extracted to a new fallback-scripts.git repository.
Closes ticket 27914.
Diffstat (limited to 'scripts/maint/lookupFallbackDirContact.py')
-rwxr-xr-x | scripts/maint/lookupFallbackDirContact.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/scripts/maint/lookupFallbackDirContact.py b/scripts/maint/lookupFallbackDirContact.py deleted file mode 100755 index 14c53d1282..0000000000 --- a/scripts/maint/lookupFallbackDirContact.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python - -# Lookup fallback directory contact lines for every fingerprint passed as an -# argument. -# -# Usage: -# lookupFallbackDirContact.py fingerprint ... - -import sys - -import stem.descriptor.remote as remote - -if len(sys.argv) <= 1: - print "Usage: {} fingerprint ...".format(sys.argv[0]) - sys.exit(-1) - -# we need descriptors, because the consensus does not have contact infos -descriptor_list = remote.get_server_descriptors(fingerprints=sys.argv[1:]).run() - -descriptor_list_fingerprints = [] -for d in descriptor_list: - assert d.fingerprint in sys.argv[1:] - descriptor_list_fingerprints.append(d.fingerprint) - print "{} {}".format(d.fingerprint, d.contact) - -for fingerprint in sys.argv[1:]: - if fingerprint not in descriptor_list_fingerprints: - print "{} not found in current descriptors".format(fingerprint) |