aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2009-04-12 07:56:58 +0000
committerRoger Dingledine <arma@torproject.org>2009-04-12 07:56:58 +0000
commit39ceda7e05d714a157dbd0da11de6ba060cb233a (patch)
treebe2f15e5146cebb0b4557bc800ceed5264c43aa2 /src/or/config.c
parent115474a44ebd5cdd12eee315a3d6c93301631277 (diff)
downloadtor-39ceda7e05d714a157dbd0da11de6ba060cb233a.tar
tor-39ceda7e05d714a157dbd0da11de6ba060cb233a.tar.gz
Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
bytes (aka 20KB/s), to match our documentation. Also update directory authorities so they always assign the Fast flag to relays with 20KB/s of capacity. Now people running relays won't suddenly find themselves not seeing any use, if the network gets faster on average. svn:r19305
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 06fab71a5..aa61ecf9a 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3271,21 +3271,21 @@ options_validate(or_options_t *old_options, or_options_t *options,
return -1;
if (server_mode(options)) {
- if (options->BandwidthRate < ROUTER_REQUIRED_MIN_BANDWIDTH*2) {
+ if (options->BandwidthRate < ROUTER_REQUIRED_MIN_BANDWIDTH) {
r = tor_snprintf(buf, sizeof(buf),
"BandwidthRate is set to %d bytes/second. "
"For servers, it must be at least %d.",
(int)options->BandwidthRate,
- ROUTER_REQUIRED_MIN_BANDWIDTH*2);
+ ROUTER_REQUIRED_MIN_BANDWIDTH);
*msg = tor_strdup(r >= 0 ? buf : "internal error");
return -1;
} else if (options->MaxAdvertisedBandwidth <
- ROUTER_REQUIRED_MIN_BANDWIDTH) {
+ ROUTER_REQUIRED_MIN_BANDWIDTH/2) {
r = tor_snprintf(buf, sizeof(buf),
"MaxAdvertisedBandwidth is set to %d bytes/second. "
"For servers, it must be at least %d.",
(int)options->MaxAdvertisedBandwidth,
- ROUTER_REQUIRED_MIN_BANDWIDTH);
+ ROUTER_REQUIRED_MIN_BANDWIDTH/2);
*msg = tor_strdup(r >= 0 ? buf : "internal error");
return -1;
}