diff options
author | David Goulet <dgoulet@torproject.org> | 2021-02-16 10:36:13 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-02-19 13:20:49 -0500 |
commit | 897ec8a34cbdfc510ddddd33cc027e13985fde8f (patch) | |
tree | 13f3af36b394a57bfdeea6e87bf400c4128d9146 /src/feature/stats/rephist.h | |
parent | 9f2e74cac710a50dcc08b3bcaf7c2dc91b4ea949 (diff) | |
download | tor-897ec8a34cbdfc510ddddd33cc027e13985fde8f.tar.gz tor-897ec8a34cbdfc510ddddd33cc027e13985fde8f.zip |
hs: Remove v2 stats
We still keep v2 rendezvous stats since we will allow them until the network
has entirely phased out.
Related to #40266
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/stats/rephist.h')
-rw-r--r-- | src/feature/stats/rephist.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/feature/stats/rephist.h b/src/feature/stats/rephist.h index de27b16ae0..7ecbfebfd7 100644 --- a/src/feature/stats/rephist.h +++ b/src/feature/stats/rephist.h @@ -67,9 +67,7 @@ void rep_hist_hs_stats_init(time_t now); void rep_hist_hs_stats_term(void); time_t rep_hist_hs_stats_write(time_t now, bool is_v3); -char *rep_hist_get_hs_v2_stats_string(void); void rep_hist_seen_new_rp_cell(bool is_v2); -void rep_hist_hsdir_stored_maybe_new_v2_onion(const crypto_pk_t *pubkey); char *rep_hist_get_hs_v3_stats_string(void); void rep_hist_hsdir_stored_maybe_new_v3_onion(const uint8_t *blinded_key); @@ -93,10 +91,6 @@ extern int onion_handshakes_assigned[MAX_ONION_HANDSHAKE_TYPE+1]; typedef struct hs_v2_stats_t { /** How many v2 relay cells have we seen as rendezvous points? */ uint64_t rp_v2_relay_cells_seen; - - /** Set of unique public key digests we've seen this stat period - * (could also be implemented as sorted smartlist). */ - digestmap_t *v2_onions_seen_this_period; } hs_v2_stats_t; /** Structure that contains the various statistics we keep about v3 |