]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Directory authorities should accept a descriptor as changed when the relay operator...
authorSebastian Hahn <sebastian@torproject.org>
Sat, 11 Apr 2009 00:12:52 +0000 (00:12 +0000)
committerSebastian Hahn <sebastian@torproject.org>
Sat, 11 Apr 2009 00:12:52 +0000 (00:12 +0000)
svn:r19259

src/or/routerlist.c

index 947e9089818b46e7ee9b918be42049b9dfacf284..fb9666af5c4f4be92b81278351b92c0d6e873664 100644 (file)
@@ -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)