From 4eff8b65305248b1e7a57d1efdf8f55039719bd7 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 4 Feb 2013 11:11:54 -0500 Subject: When we mark a node as a sybil, mark it down and reset its uptime to 0 This prevents bug 8147, where such nodes would accrue points towards Guard, Fast, HSDir, and so on. Fixes bug 8147. --- src/or/rephist.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/or/rephist.h') diff --git a/src/or/rephist.h b/src/or/rephist.h index 5568330dd..811cd8d45 100644 --- a/src/or/rephist.h +++ b/src/or/rephist.h @@ -24,6 +24,8 @@ void rep_hist_dump_stats(time_t now, int severity); void rep_hist_note_bytes_read(size_t num_bytes, time_t when); void rep_hist_note_bytes_written(size_t num_bytes, time_t when); +void rep_hist_make_router_pessimal(const char *id, time_t when); + void rep_hist_note_dir_bytes_read(size_t num_bytes, time_t when); void rep_hist_note_dir_bytes_written(size_t num_bytes, time_t when); -- cgit v1.2.3