GNUnet  0.11.x
Data Fields
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 339 of file gnunet-service-consensus.c.

Field Documentation

◆ key

struct RfnKey ReferendumEntry::key

◆ rfn_elements

struct GNUNET_CONTAINER_MultiHashMap* ReferendumEntry::rfn_elements

◆ num_peers

unsigned int ReferendumEntry::num_peers

Definition at line 351 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 commited (GNUNET_YES) in the referendum.

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

Definition at line 363 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 371 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: