[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Also ignoring shared-rand-previous-value ordering



commit c5092535e1fa818c657956460d13ecacd0854e33
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Thu Dec 22 18:36:57 2016 -0800

    Also ignoring shared-rand-previous-value ordering
    
    Same issue as the prior commit but another field. Took a while to show up
    because it wasn't in the consensus at the time.
---
 stem/descriptor/networkstatus.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stem/descriptor/networkstatus.py b/stem/descriptor/networkstatus.py
index 028594d..7456b37 100644
--- a/stem/descriptor/networkstatus.py
+++ b/stem/descriptor/networkstatus.py
@@ -1110,7 +1110,7 @@ def _check_for_misordered_fields(entries, expected):
   #
   #   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']
+  actual = [field for field in entries.keys() if field in expected and field not in ('shared-rand-current-value', 'shared-rand-previous-value')]
 
   # Narrow the expected to just what we have. If the lists then match then the
   # order's valid.

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits