summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamian Johnson <atagar@torproject.org>2016-12-22 10:05:42 -0800
committerDamian Johnson <atagar@torproject.org>2016-12-22 10:07:15 -0800
commit0414563e1222eedda1c1e6e72bd079e2c00d5c9e (patch)
treecd6895324e0a6fdfa527cbf011b0ebf5486c3572
parentdeb9e6c1965f7ea6dd38d7c759cbef84e3832aba (diff)
Disable validation check for shared-rand-current-value position
Validation has done its job. Now that we know about it no need to keep alarming on this... https://trac.torproject.org/projects/tor/ticket/21059
-rw-r--r--stem/descriptor/networkstatus.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/stem/descriptor/networkstatus.py b/stem/descriptor/networkstatus.py
index 815e5f5f..028594d7 100644
--- a/stem/descriptor/networkstatus.py
+++ b/stem/descriptor/networkstatus.py
@@ -1104,7 +1104,13 @@ def _check_for_misordered_fields(entries, expected):
# document type or are unknown. Remove the unknown fields since they
# reflect a spec change and can appear anywhere in the document.
- actual = [field for field in entries.keys() if field in expected]
+ # TODO: Ignoring shared-rand-current-value for now because it was placed in
+ # the wrong location. It'll take a while before a fix is in a release but
+ # when it is we can resume checking it...
+ #
+ # https://trac.torproject.org/projects/tor/ticket/21059
+
+ actual = [field for field in entries.keys() if field in expected and field != 'shared-rand-current-value']
# Narrow the expected to just what we have. If the lists then match then the
# order's valid.