aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/consensus_protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/consensus/consensus_protocol.h')
-rw-r--r--src/consensus/consensus_protocol.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/consensus/consensus_protocol.h b/src/consensus/consensus_protocol.h
index e0002de56..320d460c7 100644
--- a/src/consensus/consensus_protocol.h
+++ b/src/consensus/consensus_protocol.h
@@ -45,37 +45,37 @@ GNUNET_NETWORK_STRUCT_BEGIN
45struct GNUNET_CONSENSUS_RoundContextMessage 45struct GNUNET_CONSENSUS_RoundContextMessage
46{ 46{
47 /** 47 /**
48 * Type: GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT 48 * Type: #GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT
49 */ 49 */
50 struct GNUNET_MessageHeader header; 50 struct GNUNET_MessageHeader header;
51 51
52 /** 52 /**
53 * A value from 'enum PhaseKind'. 53 * A value from 'enum PhaseKind'.
54 */ 54 */
55 uint16_t kind; 55 uint16_t kind GNUNET_PACKED;
56 56
57 /** 57 /**
58 * Number of the first peer 58 * Number of the first peer
59 * in canonical order. 59 * in canonical order.
60 */ 60 */
61 int16_t peer1; 61 int16_t peer1 GNUNET_PACKED;
62 62
63 /** 63 /**
64 * Number of the second peer in canonical order. 64 * Number of the second peer in canonical order.
65 */ 65 */
66 int16_t peer2; 66 int16_t peer2 GNUNET_PACKED;
67 67
68 /** 68 /**
69 * Repetition of the gradecast phase. 69 * Repetition of the gradecast phase.
70 */ 70 */
71 int16_t repetition; 71 int16_t repetition GNUNET_PACKED;
72 72
73 /** 73 /**
74 * Leader in the gradecast phase. 74 * Leader in the gradecast phase.
75 * 75 *
76 * Can be different from both peer1 and peer2. 76 * Can be different from both peer1 and peer2.
77 */ 77 */
78 int16_t leader; 78 int16_t leader GNUNET_PACKED;
79 79
80 /** 80 /**
81 * Non-zero if this set reconciliation 81 * Non-zero if this set reconciliation
@@ -85,7 +85,7 @@ struct GNUNET_CONSENSUS_RoundContextMessage
85 * 85 *
86 * Ignored for set operations that are not within gradecasts. 86 * Ignored for set operations that are not within gradecasts.
87 */ 87 */
88 uint16_t is_contested; 88 uint16_t is_contested GNUNET_PACKED;
89}; 89};
90 90
91 91
@@ -104,12 +104,12 @@ struct ConsensusElement
104 * Payload element_type, only valid 104 * Payload element_type, only valid
105 * if this is not a marker element. 105 * if this is not a marker element.
106 */ 106 */
107 uint16_t payload_type; 107 uint16_t payload_type GNUNET_PACKED;
108 108
109 /** 109 /**
110 * Is this a marker element? 110 * Is this a marker element?
111 */ 111 */
112 uint8_t marker; 112 uint8_t marker GNUNET_PACKED;
113 113
114 /* rest: element data */ 114 /* rest: element data */
115}; 115};