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.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/consensus/consensus_protocol.h b/src/consensus/consensus_protocol.h
index fb3bde628..101b8aee7 100644
--- a/src/consensus/consensus_protocol.h
+++ b/src/consensus/consensus_protocol.h
@@ -87,6 +87,27 @@ struct GNUNET_CONSENSUS_RoundContextMessage
87 uint16_t is_contested; 87 uint16_t is_contested;
88}; 88};
89 89
90
91/**
92 * Consensus element, either marker or payload.
93 */
94struct ConsensusElement
95{
96 /**
97 * Payload element_type, only valid
98 * if this is not a marker element.
99 */
100 uint16_t payload_type;
101
102 /**
103 * Is this a marker element?
104 */
105 uint8_t is_contested_marker;
106
107 /* rest: element data */
108};
109
110
90GNUNET_NETWORK_STRUCT_END 111GNUNET_NETWORK_STRUCT_END
91 112
92#endif 113#endif