diff options
Diffstat (limited to 'src/consensus/consensus_protocol.h')
-rw-r--r-- | src/consensus/consensus_protocol.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/consensus/consensus_protocol.h b/src/consensus/consensus_protocol.h index fc8ae7533..a40162fb8 100644 --- a/src/consensus/consensus_protocol.h +++ b/src/consensus/consensus_protocol.h | |||
@@ -42,7 +42,8 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
42 | * Essentially contains all the fields | 42 | * Essentially contains all the fields |
43 | * from 'struct TaskKey', but in NBO. | 43 | * from 'struct TaskKey', but in NBO. |
44 | */ | 44 | */ |
45 | struct GNUNET_CONSENSUS_RoundContextMessage { | 45 | struct GNUNET_CONSENSUS_RoundContextMessage |
46 | { | ||
46 | /** | 47 | /** |
47 | * Type: #GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT | 48 | * Type: #GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT |
48 | */ | 49 | */ |
@@ -88,7 +89,8 @@ struct GNUNET_CONSENSUS_RoundContextMessage { | |||
88 | }; | 89 | }; |
89 | 90 | ||
90 | 91 | ||
91 | enum { | 92 | enum |
93 | { | ||
92 | CONSENSUS_MARKER_CONTESTED = 1, | 94 | CONSENSUS_MARKER_CONTESTED = 1, |
93 | CONSENSUS_MARKER_SIZE = 2, | 95 | CONSENSUS_MARKER_SIZE = 2, |
94 | }; | 96 | }; |
@@ -97,7 +99,8 @@ enum { | |||
97 | /** | 99 | /** |
98 | * Consensus element, either marker or payload. | 100 | * Consensus element, either marker or payload. |
99 | */ | 101 | */ |
100 | struct ConsensusElement { | 102 | struct ConsensusElement |
103 | { | ||
101 | /** | 104 | /** |
102 | * Payload element_type, only valid | 105 | * Payload element_type, only valid |
103 | * if this is not a marker element. | 106 | * if this is not a marker element. |
@@ -113,14 +116,16 @@ struct ConsensusElement { | |||
113 | }; | 116 | }; |
114 | 117 | ||
115 | 118 | ||
116 | struct ConsensusSizeElement { | 119 | struct ConsensusSizeElement |
120 | { | ||
117 | struct ConsensusElement ce; | 121 | struct ConsensusElement ce; |
118 | 122 | ||
119 | uint64_t size GNUNET_PACKED; | 123 | uint64_t size GNUNET_PACKED; |
120 | uint8_t sender_index; | 124 | uint8_t sender_index; |
121 | }; | 125 | }; |
122 | 126 | ||
123 | struct ConsensusStuffedElement { | 127 | struct ConsensusStuffedElement |
128 | { | ||
124 | struct ConsensusElement ce; | 129 | struct ConsensusElement ce; |
125 | struct GNUNET_HashCode rand GNUNET_PACKED; | 130 | struct GNUNET_HashCode rand GNUNET_PACKED; |
126 | }; | 131 | }; |