tor/src/feature/dirclient
Roger Dingledine acb5b0d535
Don't accept posted votes after :52:30
If we receive via 'post' a vote from a dir auth after the
fetch_missing_votes cutoff, that means we didn't get it by the time we
begin the "fetching missing votes from everybody else" phase, which means
it is very likely to cause a consensus split if we count it. Instead,
we reject it.

But we still allow votes that we fetch ourselves after that cutoff.

This is a demo branch for making progress on #4631.

I've been running it on moria1 and it catches and handles real buggy
behavior from directory authorities, e.g.

Jan 28 15:59:50.804 [warn] Rejecting vote from 199.58.81.140 received at 2020-01-28 20:59:50; our cutoff for received votes is 2020-01-28 20:52:30
Jan 28 15:59:50.805 [warn] Rejected vote from 199.58.81.140 ("Vote received too late, would be dangerous to count it").
Jan 29 01:52:52.667 [warn] Rejecting vote from 204.13.164.118 received at 2020-01-29 06:52:52; our cutoff for received votes is 2020-01-29 06:52:30
Jan 29 01:52:52.669 [warn] Rejected vote from 204.13.164.118 ("Vote received too late, would be dangerous to count it").
Jan 29 04:53:26.323 [warn] Rejecting vote from 204.13.164.118 received at 2020-01-29 09:53:26; our cutoff for received votes is 2020-01-29 09:52:30
Jan 29 04:53:26.326 [warn] Rejected vote from 204.13.164.118 ("Vote received too late, would be dangerous to count it").
2020-02-18 12:44:41 +10:00
..
.may_include practracker: Add missing .may_include files 2019-12-04 12:15:22 -05:00
dir_server_st.h It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
dirclient_modes.c Rename dirclient_modes.h identifiers to start with dirclient_ 2020-01-16 07:48:17 -05:00
dirclient_modes.h Rename dirclient_modes.h identifiers to start with dirclient_ 2020-01-16 07:48:17 -05:00
dirclient.c Don't accept posted votes after :52:30 2020-02-18 12:44:41 +10:00
dirclient.h Move directory_must_use_begindir() to dirclient_modes.[ch] 2020-01-16 07:48:17 -05:00
dlstatus.c It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
dlstatus.h It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
download_status_st.h It's 2020. Update the copyright dates with "make update-copyright" 2020-01-08 18:39:17 -05:00
feature_dirclient.md Doxygen: rename all .dox files to end with .md 2019-11-15 09:28:12 -05:00
include.am Merge branch 'ticket32487_squashed' into ticket32487_squashed_and_merged 2020-01-16 07:57:37 -05:00