[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r19259: {tor} Directory authorities should accept a descriptor as changed (tor/trunk/src/or)
Author: sebastian
Date: 2009-04-10 20:12:52 -0400 (Fri, 10 Apr 2009)
New Revision: 19259
Modified:
tor/trunk/src/or/routerlist.c
Log:
Directory authorities should accept a descriptor as changed when the relay operator changed the bandwithrate or bandwithburst settings.
Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c 2009-04-10 07:20:32 UTC (rev 19258)
+++ tor/trunk/src/or/routerlist.c 2009-04-11 00:12:52 UTC (rev 19259)
@@ -4615,6 +4615,11 @@
(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)