1 /* Copyright (c) 2001 Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
8 * @file networkstatus_sr_info_st.h
9 * @brief Shared-randomness structure.
12 #ifndef NETWORKSTATUS_SR_INFO_ST_H
13 #define NETWORKSTATUS_SR_INFO_ST_H
15 struct networkstatus_sr_info_t
{
16 /* Indicate if the dirauth partitipates in the SR protocol with its vote.
17 * This is tied to the SR flag in the vote. */
18 unsigned int participate
:1;
19 /* Both vote and consensus: Current and previous SRV. If list is empty,
20 * this means none were found in either the consensus or vote. */
21 struct sr_srv_t
*previous_srv
;
22 struct sr_srv_t
*current_srv
;
23 /* Vote only: List of commitments. */
27 #endif /* !defined(NETWORKSTATUS_SR_INFO_ST_H) */