mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Entry Nodes: Mark outdated dirservers in reasonably live consensuses
Fixes bug 28569; bugfix on Tor 0.3.2.5-alpha.
This commit is contained in:
parent
d1ac5613fc
commit
657618ba9b
3
changes/bug28569
Normal file
3
changes/bug28569
Normal file
@ -0,0 +1,3 @@
|
||||
o Minor bugfixes (unit tests, directory clients):
|
||||
- Mark outdated dirservers when Tor only has a reasonably live consensus.
|
||||
Fixes bug 28569; bugfix on 0.3.2.5-alpha.
|
@ -108,10 +108,12 @@ microdesc_note_outdated_dirserver(const char *relay_digest)
|
||||
{
|
||||
char relay_hexdigest[HEX_DIGEST_LEN+1];
|
||||
|
||||
/* Don't register outdated dirservers if we don't have a live consensus,
|
||||
* since we might be trying to fetch microdescriptors that are not even
|
||||
* currently active. */
|
||||
if (!networkstatus_get_live_consensus(approx_time())) {
|
||||
/* If we have a reasonably live consensus, then most of our dirservers should
|
||||
* still be caching all the microdescriptors in it. Reasonably live
|
||||
* consensuses are up to a day old. But microdescriptors expire 7 days after
|
||||
* the last consensus that referenced them. */
|
||||
if (!networkstatus_get_reasonably_live_consensus(approx_time(),
|
||||
FLAV_MICRODESC)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user