migrating towards XDG configuration specification (#3000)
[oweals/gnunet.git] / src / consensus / consensus_protocol.h
index c0420d55c72ba699f5db47b1a7cf0c34879452e4..128ca2c162ed7d320cc7afdfcfb0fffb89baca42 100644 (file)
@@ -4,7 +4,7 @@
 
       GNUnet is free software; you can redistribute it and/or modify
       it under the terms of the GNU General Public License as published
 
       GNUnet is free software; you can redistribute it and/or modify
       it under the terms of the GNU General Public License as published
-      by the Free Software Foundation; either version 2, or (at your
+      by the Free Software Foundation; either version 3, or (at your
       option) any later version.
 
       GNUnet is distributed in the hope that it will be useful, but
       option) any later version.
 
       GNUnet is distributed in the hope that it will be useful, but
 
 GNUNET_NETWORK_STRUCT_BEGIN
 
 
 GNUNET_NETWORK_STRUCT_BEGIN
 
-struct StrataMessage
-{
-  struct GNUNET_MessageHeader header;
-  uint8_t round;
-  uint8_t exp_round;
-  uint8_t exp_subround;
-  /* struct GNUNET_HashCode hash_buckets[ibf_size*num_strata] */
-  /* struct GNUNET_HashCode id_buckets[ibf_size*num_strata] */
-  /* uint8_t count_buckets[ibf_size*num_strata] */
-};
-
-struct DifferenceDigest
-{
-  struct GNUNET_MessageHeader header;
-  uint8_t order;
-  uint8_t round;
-  uint8_t exp_round;
-  uint8_t exp_subround;
-  /* rest: IBF */
-};
-
-
-struct Element
-{
-  struct GNUNET_MessageHeader header;
-  struct GNUNET_HashCode hash;
-};
-
-
-struct ElementRequest
-{
-  struct GNUNET_MessageHeader header;
-  /* struct GNUNET_HashCode[] rest */
-};
-
-struct ConsensusHello
-{
-  struct GNUNET_MessageHeader header;
-  struct GNUNET_HashCode global_id;
-};
-
-struct ConsensusRoundHeader
+/**
+ * Sent as context message for set reconciliation.
+ */
+struct GNUNET_CONSENSUS_RoundContextMessage
 {
 {
+  /**
+   * Type: GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT
+   */
   struct GNUNET_MessageHeader header;
   struct GNUNET_MessageHeader header;
-  uint8_t round;
-  uint8_t exp_round;
-  uint8_t exp_subround;
+  uint32_t round;
+  uint32_t exp_round;
+  uint32_t exp_subround;
 };
 
 };
 
-
 GNUNET_NETWORK_STRUCT_END
 
 #endif
 GNUNET_NETWORK_STRUCT_END
 
 #endif