GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 50821110 authored by juga  's avatar juga

fix: v3bwfile: Tor version added in bandwidth v1.4.0

since, by mistake, the bandwidth file version here was never updated
to v1.5.0.
This patch only changes the constants names, but logic remains the same.

Related to torspec#35.
parent 8fdd85b7
......@@ -125,13 +125,9 @@ HEADER_KEYS_V1_4 = [
'time_to_report_half_network',
] + HEADER_RECENT_MEASUREMENTS_EXCLUDED_KEYS
# KeyValues added in the Bandwidth File v1.5.0
# XXX: Change SPEC_VERSION when all the v1.5.0 keys are added, before a new
# sbws release.
# Tor version will be obtained from the state file, so it won't be pass as an
# argument, but will be self-initialized.
HEADER_KEYS_V1_5_TO_INIT = ['tor_version']
HEADER_KEYS_V1_5 = HEADER_KEYS_V1_5_TO_INIT
HEADER_KEYS_V1_4_TO_INIT = ['tor_version']
# KeyValues that are initialized from arguments, not self-initialized.
HEADER_INIT_KEYS = (
......@@ -139,7 +135,7 @@ HEADER_INIT_KEYS = (
+ HEADER_KEYS_V1_3
+ HEADER_KEYS_V1_2
+ HEADER_KEYS_V1_4
+ HEADER_KEYS_V1_5_TO_INIT
+ HEADER_KEYS_V1_4_TO_INIT
)
HEADER_INT_KEYS = HEADER_KEYS_V1_2 + HEADER_KEYS_V1_4
......@@ -150,7 +146,7 @@ HEADER_UNORDERED_KEYS = (
+ HEADER_KEYS_V1_3
+ HEADER_KEYS_V1_2
+ HEADER_KEYS_V1_4
+ HEADER_KEYS_V1_5
+ HEADER_KEYS_V1_4_TO_INIT
)
# List of all the KeyValues currently being used to generate the file
HEADER_ALL_KEYS = HEADER_KEYS_V1_1_ORDERED + HEADER_UNORDERED_KEYS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment