diff options
author | David Goulet <dgoulet@torproject.org> | 2016-05-03 11:36:09 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-07-01 14:01:41 -0400 |
commit | 0c26a6db7e683c23505c1c9187fd538c7b80ce31 (patch) | |
tree | a1ad7d2b48935a5f02a0abdf520e4e81a02f1268 /src/or/shared_random_state.h | |
parent | ca6ceec112f05ce68097429089ee428010c8b8d0 (diff) | |
download | tor-0c26a6db7e683c23505c1c9187fd538c7b80ce31.tar.gz tor-0c26a6db7e683c23505c1c9187fd538c7b80ce31.zip |
prop250: Parse votes and consensus
One of the last piece that parses the votes and consensus in order to update
our state and make decision for the SR values.
We need to inform the SR subsystem when we set the current consensus because
this can be called when loaded from file or downloaded from other authorities
or computed.
The voting schedule is used for the SR timings since we are bound to the
voting system.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Signed-off-by: George Kadianakis <desnacked@riseup.net>
Diffstat (limited to 'src/or/shared_random_state.h')
-rw-r--r-- | src/or/shared_random_state.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/shared_random_state.h b/src/or/shared_random_state.h index d9d97510da..499a3754b6 100644 --- a/src/or/shared_random_state.h +++ b/src/or/shared_random_state.h @@ -116,6 +116,7 @@ unsigned int sr_state_srv_is_fresh(void); void sr_state_set_fresh_srv(void); void sr_state_unset_fresh_srv(void); int sr_state_init(int save_to_disk, int read_from_disk); +int sr_state_is_initialized(void); void sr_state_save(void); void sr_state_free(void); |