*/
struct GNUNET_MessageHeader header;
+ /**
+ * Number of peers (at the end of this message) that want to
+ * participate in the consensus.
+ */
uint32_t num_peers GNUNET_PACKED;
- struct GNUNET_HashCode session_id;
-
- /* GNUNET_PeerIdentity[num_peers] */
-};
-
-
-struct GNUNET_CONSENSUS_ConcludeMessage
-{
/**
- * Type: GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_CONCLUDE
+ * Session id of the consensus.
*/
- struct GNUNET_MessageHeader header;
+ struct GNUNET_HashCode session_id;
/**
- * Padding, must be zero.
+ * Start time for the consensus.
*/
- uint32_t reserved GNUNET_PACKED;
+ struct GNUNET_TIME_AbsoluteNBO start;
/**
- * Deadline for conclude
+ * Deadline for conclude.
*/
struct GNUNET_TIME_AbsoluteNBO deadline;
+
+ /* GNUNET_PeerIdentity[num_peers] */
};
/* rest: element data */
};
-struct GNUNET_CONSENSUS_AckMessage
-{
- /**
- * Type: GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_ACK
- */
- struct GNUNET_MessageHeader header;
-
- /**
- * Do we want to keep and propagate the element?
- */
- uint8_t keep; /* FIXME: alignment!? => (u)int32_t */
-
- /* FIXME: add message hash? */
-};
GNUNET_NETWORK_STRUCT_END