torproject / stem

Python controller library for Tor
https://stem.torproject.org/
GNU Lesser General Public License v3.0
279 stars 76 forks source link

Use enum for `known_flags` field in `NetworkStatusDocument` #84

Closed jbrown299 closed 3 years ago

jbrown299 commented 3 years ago

For now it's list of strings:

['Authority', 'BadExit', 'Exit', 'Fast', 'Guard', 'HSDir', 'NoEdConsensus', 'Running', 'Stable', 'StaleDesc', 'V2Dir', 'Valid']
atagar commented 3 years ago

Hi James. NetworkStatusDocument already uses our Flag enum.

https://stem.torproject.org/api/descriptor/networkstatus.html#stem.descriptor.networkstatus.NetworkStatusDocumentV3 https://stem.torproject.org/api/control.html#stem.Flag