Type Alias tor_netdoc::doc::netstatus::NsConsensus
source · pub type NsConsensus = Consensus<NsConsensusRouterStatus>;
Available on crate feature
ns_consensus
only.Expand description
A consensus document that lists relays along with their router descriptor documents.
Aliased Type§
struct NsConsensus {
pub header: ConsensusHeader,
pub voters: Vec<ConsensusVoterInfo>,
pub relays: Vec<NsConsensusRouterStatus>,
pub footer: Footer,
}
Fields§
§header: ConsensusHeader
Available on crate feature
dangerous-expose-struct-fields
only.Part of the header shared by all consensus types.
voters: Vec<ConsensusVoterInfo>
Available on crate feature
dangerous-expose-struct-fields
only.List of voters whose votes contributed to this consensus.
relays: Vec<NsConsensusRouterStatus>
Available on crate feature
dangerous-expose-struct-fields
only.A list of routerstatus entries for the relays on the network, with one entry per relay.
These are currently ordered by the router’s RSA identity, but this is not to be relied on, since we may want to even abolish RSA at some point!
Available on crate feature
dangerous-expose-struct-fields
only.Footer for the consensus object.