summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2009-04-11 00:12:52 +0000
committerSebastian Hahn <sebastian@torproject.org>2009-04-11 00:12:52 +0000
commit8390787a5f90609621a4a126414ad68242ff7a2a (patch)
tree61fa75205055b79bb166fd6753b5bd78795c24d1
parentc4145e5390980cd7fb1e6f0777e9df6bf3e7639e (diff)
downloadtor-8390787a5f90609621a4a126414ad68242ff7a2a.tar.gz
tor-8390787a5f90609621a4a126414ad68242ff7a2a.zip
Directory authorities should accept a descriptor as changed when the relay operator changed the bandwithrate or bandwithburst settings.
svn:r19259
-rw-r--r--src/or/routerlist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 947e908981..fb9666af5c 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -4615,6 +4615,11 @@ router_differences_are_cosmetic(routerinfo_t *r1, routerinfo_t *r2)
(r2->bandwidthcapacity < r1->bandwidthcapacity/2))
return 0;
+ /* Did the bandwithrate or bandwithburst change? */
+ if ((r1->bandwidthrate != r2->bandwidthrate) ||
+ (r1->bandwidthburst != r2->bandwidthburst))
+ return 0;
+
/* Did more than 12 hours pass? */
if (r1->cache_info.published_on + ROUTER_MAX_COSMETIC_TIME_DIFFERENCE
< r2->cache_info.published_on)