Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
125fba2e
Commit
125fba2e
authored
13 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Provide consensus params to constrain the threshold for Fast
resolves ticket 3946
parent
1810db9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/fast_bw_param
+8
-0
8 additions, 0 deletions
changes/fast_bw_param
src/or/dirserv.c
+12
-0
12 additions, 0 deletions
src/or/dirserv.c
with
20 additions
and
0 deletions
changes/fast_bw_param
0 → 100644
+
8
−
0
View file @
125fba2e
o Minor features (directory authority):
- Provide two consensus parameters (FastFlagMinThreshold and
FastFlagMaxThreshold) to control the range of allowable bandwidths for
the Fast directory flag. This allows authorities to run better
experiments on appropriate requirements for being a "Fast" node.
The AuthDirFastGuarantee flag still applies.
This diff is collapsed.
Click to expand it.
src/or/dirserv.c
+
12
−
0
View file @
125fba2e
...
...
@@ -1938,6 +1938,18 @@ dirserv_compute_performance_thresholds(routerlist_t *rl)
if
(
guard_tk
>
TIME_KNOWN_TO_GUARANTEE_FAMILIAR
)
guard_tk
=
TIME_KNOWN_TO_GUARANTEE_FAMILIAR
;
{
/* We can vote on a parameter for the minimum and maximum. */
int32_t
min_fast
,
max_fast
;
min_fast
=
networkstatus_get_param
(
NULL
,
"FastFlagMinThreshold"
,
0
,
0
,
INT32_MAX
);
max_fast
=
networkstatus_get_param
(
NULL
,
"FastFlagMaxThreshold"
,
INT32_MAX
,
min_fast
,
INT32_MAX
);
if
(
fast_bandwidth
<
(
uint32_t
)
min_fast
)
fast_bandwidth
=
min_fast
;
if
(
fast_bandwidth
>
(
uint32_t
)
max_fast
)
fast_bandwidth
=
max_fast
;
}
/* Protect sufficiently fast nodes from being pushed out of the set
* of Fast nodes. */
if
(
options
->
AuthDirFastGuarantee
&&
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment