Update comment and add changes file for 20942

This commit is contained in:
teor 2017-12-22 21:49:28 +11:00
parent 23979d7682
commit 9a0cf2376d
No known key found for this signature in database
GPG Key ID: 740D9E39025272A2
2 changed files with 8 additions and 4 deletions

3
changes/bug20942 Normal file
View File

@ -0,0 +1,3 @@
o Minor features (fallback directory mirrors):
- Reject any fallback directory mirror that serves an expired consensus.
Implements ticket 20942, patch by "minik".

View File

@ -98,10 +98,11 @@ DOWNLOAD_MICRODESC_CONSENSUS = True
# reject consensuses that are older than REASONABLY_LIVE_TIME. # reject consensuses that are older than REASONABLY_LIVE_TIME.
# For the consensus expiry check to be accurate, the machine running this # For the consensus expiry check to be accurate, the machine running this
# script needs an accurate clock. # script needs an accurate clock.
# We use 24 hours to compensate for #20909, where relays on 0.2.9.5-alpha and #
# 0.3.0.0-alpha-dev and later deliver stale consensuses, but typically recover # Relays on 0.3.0 and later return a 404 when they are about to serve an
# after ~12 hours. # expired consensus. This makes them fail the download check.
# We should make this lower when #20909 is fixed, see #20942. # We use a tolerance of 0, so that 0.2.x series relays also fail the download
# check if they serve an expired consensus.
CONSENSUS_EXPIRY_TOLERANCE = 0 CONSENSUS_EXPIRY_TOLERANCE = 0
# Output fallback name, flags, bandwidth, and ContactInfo in a C comment? # Output fallback name, flags, bandwidth, and ContactInfo in a C comment?