GNUnet 0.21.1
ReferendumEntry Struct Reference
Collaboration diagram for ReferendumEntry:
[legend]

Data Fields

struct RfnKey key
 
struct GNUNET_CONTAINER_MultiHashMaprfn_elements
 
unsigned int num_peers
 
int * peer_commited
 Stores, for every peer in the session, whether the peer finished the whole referendum. More...
 
int * peer_contested
 Contestation state of the peer. More...
 

Detailed Description

Definition at line 341 of file gnunet-service-consensus.c.

Field Documentation

◆ key

◆ rfn_elements

struct GNUNET_CONTAINER_MultiHashMap* ReferendumEntry::rfn_elements

◆ num_peers

unsigned int ReferendumEntry::num_peers

Definition at line 353 of file gnunet-service-consensus.c.

Referenced by rfn_create(), rfn_majority(), rfn_noncontested(), and rfn_vote().

◆ peer_commited

int* ReferendumEntry::peer_commited

Stores, for every peer in the session, whether the peer finished the whole referendum.

Votes from peers are only counted if they're marked as committed (GNUNET_YES) in the referendum.

Otherwise (GNUNET_NO), the requested changes are not counted for majority votes or thresholds.

Definition at line 365 of file gnunet-service-consensus.c.

Referenced by rfn_commit(), rfn_create(), rfn_majority(), and rfn_noncontested().

◆ peer_contested

int* ReferendumEntry::peer_contested

Contestation state of the peer.

If a peer is contested, the values it contributed are still counted for applying changes, but the grading is affected.

Definition at line 373 of file gnunet-service-consensus.c.

Referenced by rfn_contest(), rfn_create(), and rfn_noncontested().


The documentation for this struct was generated from the following file: