projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
migrating towards XDG configuration specification (#3000)
[oweals/gnunet.git]
/
src
/
consensus
/
consensus_protocol.h
diff --git
a/src/consensus/consensus_protocol.h
b/src/consensus/consensus_protocol.h
index c84aad2639eca6c828fd1d8f539e1e0b5a6aa4ec..128ca2c162ed7d320cc7afdfcfb0fffb89baca42 100644
(file)
--- a/
src/consensus/consensus_protocol.h
+++ b/
src/consensus/consensus_protocol.h
@@
-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
@@
-35,39
+35,20
@@
GNUNET_NETWORK_STRUCT_BEGIN
GNUNET_NETWORK_STRUCT_BEGIN
-struct StrataMessage
+/**
+ * Sent as context message for set reconciliation.
+ */
+struct GNUNET_CONSENSUS_RoundContextMessage
{
{
- struct GNUNET_MessageHeader header;
/**
/**
- *
Number of strata in this estimator.
+ *
Type: GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT
*/
*/
- uint16_t num_strata;
- /* 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;
struct GNUNET_MessageHeader header;
- uint8_t order;
- uint8_t round;
+ uint32_t round;
+ uint32_t exp_round;
+ uint32_t exp_subround;
};
};
-struct Element
-{
- struct GNUNET_MessageHeader header;
- struct GNUNET_HashCode hash;
-};
-
-struct ConsensusHello
-{
- struct GNUNET_MessageHeader header;
- struct GNUNET_HashCode global_id;
- uint8_t round;
-};
-
-
GNUNET_NETWORK_STRUCT_END
#endif
GNUNET_NETWORK_STRUCT_END
#endif