Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

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.

  • Legacy
  • TracTrac
  • Issues
  • #14957

Closed (moved)
Open
Opened Feb 19, 2015 by George Kadianakis@asn

Clients wait for an extra consensus before learning the correct UseGuardFraction value

When clients parse the consensus, they decide whether to register any guardfraction information included based on the value of the UseGuardFraction consensus parameter. The problem is that the decision is taken in the middle of consensus parsing, but in should_apply_guardfraction() we wrongly use networkstatus_get_param(NULL, "UseGuardFraction",..." to decide whether the parameter is on or off. In that case networkstatus_get_param() will check the old consensus, and not the one that we are currently parsing and is still in unfinished state.

comment:52:ticket:9321 includes some possible fixes.

Another possible fix would be to always register guardfraction information found in the consensus. But instead check during path building time whether we should use it or not. So instead of having should_apply_guardfraction() we would have should_consider_guardfraction() or should_use_guardfraction().

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Tor: unspecified
Milestone
Tor: unspecified
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#14957