aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-05-22 09:48:10 -0400
committerNick Mathewson <nickm@torproject.org>2013-02-19 11:05:15 -0500
commite73bbea26271dd6db75ca5c676f3c4ba8fc735e4 (patch)
tree78342452f8bb10737736209265e0e5901c48d5d3 /src/or/routerparse.c
parent1cd67443383966687af3b2f9086ceeb7915017bf (diff)
downloadtor-e73bbea26271dd6db75ca5c676f3c4ba8fc735e4.tar.gz
tor-e73bbea26271dd6db75ca5c676f3c4ba8fc735e4.zip
Tweak consensus method 17 based on arma's comments
Instead of capping whenever a router has fewer than 3 measurements, we cap whenever a router has fewer than 3 measurements *AND* there are at least 3 authorities publishing measured bandwidths. We also generate bandwidth lines with a new "Unmeasured=1" flag, meaning that we didn't have enough observations for a node to use measured bandwidth values in the authority's input, whether we capped it or not.
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 2a3de12c35..c5a584c53f 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1985,6 +1985,7 @@ routerstatus_parse_entry_from_string(memarea_t *area,
goto err;
}
rs->has_measured_bw = 1;
+ vote->has_measured_bws = 1;
}
}
}