Loading src/or/dirvote.c +2 −1 Original line number Diff line number Diff line Loading @@ -2648,7 +2648,8 @@ get_voting_schedule(const or_options_t *options, time_t now, int severity) new_voting_schedule->fetch_missing_signatures = start - (dist_delay/2); new_voting_schedule->voting_ends = start - dist_delay; new_voting_schedule->fetch_missing_votes = start - dist_delay - (vote_delay/2); new_voting_schedule->fetch_missing_votes = start - dist_delay - (vote_delay/2); new_voting_schedule->voting_starts = start - dist_delay - vote_delay; { Loading src/or/shared_random.c +5 −3 Original line number Diff line number Diff line Loading @@ -327,7 +327,6 @@ reveal_decode(const char *encoded, sr_commit_t *commit) return -1; } /* Encode a reveal element using a given commit object to dst which is a * buffer large enough to put the base64-encoded reveal construction. The * format is as follow: Loading Loading @@ -629,7 +628,8 @@ should_keep_commit(const sr_commit_t *commit, const char *voter_key, lasts multiple rounds. However if the commitment value changes during commit phase, it might be a bug so log more loudly. */ if (!commitments_are_the_same(commit, saved_commit)) { log_info(LD_DIR, "SR: Received altered commit from %s in commit phase.", log_info(LD_DIR, "SR: Received altered commit from %s in commit phase.", sr_commit_get_rsa_fpr(commit)); } else { log_debug(LD_DIR, "SR: Ignoring known commit during commit phase."); Loading Loading @@ -1348,9 +1348,11 @@ sr_save_and_cleanup(void) /* Set the global value of number of SRV agreements so the test can play * along by calling specific functions that don't parse the votes prior for * the AuthDirNumSRVAgreements value. */ void set_num_srv_agreements(int32_t value) void set_num_srv_agreements(int32_t value) { num_srv_agreements_from_vote = value; } #endif /* TOR_UNIT_TESTS */ src/or/shared_random.h +1 −0 Original line number Diff line number Diff line Loading @@ -164,3 +164,4 @@ void set_num_srv_agreements(int32_t value); #endif /* TOR_UNIT_TESTS */ #endif /* TOR_SHARED_RANDOM_H */ src/or/shared_random_state.c +1 −0 Original line number Diff line number Diff line Loading @@ -1351,3 +1351,4 @@ get_sr_state(void) } #endif /* TOR_UNIT_TESTS */ src/or/shared_random_state.h +1 −0 Original line number Diff line number Diff line Loading @@ -144,3 +144,4 @@ STATIC sr_state_t *get_sr_state(void); #endif /* TOR_UNIT_TESTS */ #endif /* TOR_SHARED_RANDOM_STATE_H */ Loading
src/or/dirvote.c +2 −1 Original line number Diff line number Diff line Loading @@ -2648,7 +2648,8 @@ get_voting_schedule(const or_options_t *options, time_t now, int severity) new_voting_schedule->fetch_missing_signatures = start - (dist_delay/2); new_voting_schedule->voting_ends = start - dist_delay; new_voting_schedule->fetch_missing_votes = start - dist_delay - (vote_delay/2); new_voting_schedule->fetch_missing_votes = start - dist_delay - (vote_delay/2); new_voting_schedule->voting_starts = start - dist_delay - vote_delay; { Loading
src/or/shared_random.c +5 −3 Original line number Diff line number Diff line Loading @@ -327,7 +327,6 @@ reveal_decode(const char *encoded, sr_commit_t *commit) return -1; } /* Encode a reveal element using a given commit object to dst which is a * buffer large enough to put the base64-encoded reveal construction. The * format is as follow: Loading Loading @@ -629,7 +628,8 @@ should_keep_commit(const sr_commit_t *commit, const char *voter_key, lasts multiple rounds. However if the commitment value changes during commit phase, it might be a bug so log more loudly. */ if (!commitments_are_the_same(commit, saved_commit)) { log_info(LD_DIR, "SR: Received altered commit from %s in commit phase.", log_info(LD_DIR, "SR: Received altered commit from %s in commit phase.", sr_commit_get_rsa_fpr(commit)); } else { log_debug(LD_DIR, "SR: Ignoring known commit during commit phase."); Loading Loading @@ -1348,9 +1348,11 @@ sr_save_and_cleanup(void) /* Set the global value of number of SRV agreements so the test can play * along by calling specific functions that don't parse the votes prior for * the AuthDirNumSRVAgreements value. */ void set_num_srv_agreements(int32_t value) void set_num_srv_agreements(int32_t value) { num_srv_agreements_from_vote = value; } #endif /* TOR_UNIT_TESTS */
src/or/shared_random.h +1 −0 Original line number Diff line number Diff line Loading @@ -164,3 +164,4 @@ void set_num_srv_agreements(int32_t value); #endif /* TOR_UNIT_TESTS */ #endif /* TOR_SHARED_RANDOM_H */
src/or/shared_random_state.c +1 −0 Original line number Diff line number Diff line Loading @@ -1351,3 +1351,4 @@ get_sr_state(void) } #endif /* TOR_UNIT_TESTS */
src/or/shared_random_state.h +1 −0 Original line number Diff line number Diff line Loading @@ -144,3 +144,4 @@ STATIC sr_state_t *get_sr_state(void); #endif /* TOR_UNIT_TESTS */ #endif /* TOR_SHARED_RANDOM_STATE_H */