GNUnet 0.22.2
GNUNET_CONSENSUS_RoundContextMessage Struct Reference

Sent as context message for set reconciliation. More...

#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/contrib/service/consensus/consensus_protocol.h>

Collaboration diagram for GNUNET_CONSENSUS_RoundContextMessage:
[legend]

Data Fields

struct GNUNET_MessageHeader header
 Type: GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT. More...
 
uint16_t kind
 A value from 'enum PhaseKind'. More...
 
int16_t peer1
 Number of the first peer in canonical order. More...
 
int16_t peer2
 Number of the second peer in canonical order. More...
 
int16_t repetition
 Repetition of the gradecast phase. More...
 
int16_t leader
 Leader in the gradecast phase. More...
 
uint16_t is_contested
 Non-zero if this set reconciliation had elements removed because they were contested. More...
 

Detailed Description

Sent as context message for set reconciliation.

Essentially contains all the fields from 'struct TaskKey', but in NBO.

Definition at line 45 of file consensus_protocol.h.

Field Documentation

◆ header

struct GNUNET_MessageHeader GNUNET_CONSENSUS_RoundContextMessage::header

◆ kind

uint16_t GNUNET_CONSENSUS_RoundContextMessage::kind

A value from 'enum PhaseKind'.

Definition at line 55 of file consensus_protocol.h.

Referenced by set_listen_cb(), and task_start_reconcile().

◆ peer1

int16_t GNUNET_CONSENSUS_RoundContextMessage::peer1

Number of the first peer in canonical order.

Definition at line 61 of file consensus_protocol.h.

Referenced by set_listen_cb(), and task_start_reconcile().

◆ peer2

int16_t GNUNET_CONSENSUS_RoundContextMessage::peer2

Number of the second peer in canonical order.

Definition at line 66 of file consensus_protocol.h.

Referenced by set_listen_cb(), and task_start_reconcile().

◆ repetition

int16_t GNUNET_CONSENSUS_RoundContextMessage::repetition

Repetition of the gradecast phase.

Definition at line 71 of file consensus_protocol.h.

Referenced by set_listen_cb(), and task_start_reconcile().

◆ leader

int16_t GNUNET_CONSENSUS_RoundContextMessage::leader

Leader in the gradecast phase.

Can be different from both peer1 and peer2.

Definition at line 78 of file consensus_protocol.h.

Referenced by set_listen_cb(), and task_start_reconcile().

◆ is_contested

uint16_t GNUNET_CONSENSUS_RoundContextMessage::is_contested

Non-zero if this set reconciliation had elements removed because they were contested.

Will be considered when grading broadcasts.

Ignored for set operations that are not within gradecasts.

Definition at line 88 of file consensus_protocol.h.

Referenced by task_start_reconcile().


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