aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/consensus_protocol.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-03-19 02:09:10 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-03-19 02:09:10 +0000
commitde88db7fecd4651732563450070095a2309079b7 (patch)
treee732c2a10aa5fe1bcf149597394975c1ea4a0857 /src/consensus/consensus_protocol.h
parentca39427d26e560d3ca74580825e1635b1dae4166 (diff)
downloadgnunet-de88db7fecd4651732563450070095a2309079b7.tar.gz
gnunet-de88db7fecd4651732563450070095a2309079b7.zip
fixed consensus for two peers, added log-rounds, started implementing freeze, multiple peers still buggy
Diffstat (limited to 'src/consensus/consensus_protocol.h')
-rw-r--r--src/consensus/consensus_protocol.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/consensus/consensus_protocol.h b/src/consensus/consensus_protocol.h
index e8b2c8a34..c0420d55c 100644
--- a/src/consensus/consensus_protocol.h
+++ b/src/consensus/consensus_protocol.h
@@ -38,14 +38,9 @@ GNUNET_NETWORK_STRUCT_BEGIN
38struct StrataMessage 38struct StrataMessage
39{ 39{
40 struct GNUNET_MessageHeader header; 40 struct GNUNET_MessageHeader header;
41 /** 41 uint8_t round;
42 * Number of elements the sender currently has. 42 uint8_t exp_round;
43 */ 43 uint8_t exp_subround;
44 uint16_t num_elements;
45 /**
46 * Number of strata in this estimator.
47 */
48 uint16_t num_strata;
49 /* struct GNUNET_HashCode hash_buckets[ibf_size*num_strata] */ 44 /* struct GNUNET_HashCode hash_buckets[ibf_size*num_strata] */
50 /* struct GNUNET_HashCode id_buckets[ibf_size*num_strata] */ 45 /* struct GNUNET_HashCode id_buckets[ibf_size*num_strata] */
51 /* uint8_t count_buckets[ibf_size*num_strata] */ 46 /* uint8_t count_buckets[ibf_size*num_strata] */
@@ -56,8 +51,12 @@ struct DifferenceDigest
56 struct GNUNET_MessageHeader header; 51 struct GNUNET_MessageHeader header;
57 uint8_t order; 52 uint8_t order;
58 uint8_t round; 53 uint8_t round;
54 uint8_t exp_round;
55 uint8_t exp_subround;
56 /* rest: IBF */
59}; 57};
60 58
59
61struct Element 60struct Element
62{ 61{
63 struct GNUNET_MessageHeader header; 62 struct GNUNET_MessageHeader header;
@@ -75,7 +74,14 @@ struct ConsensusHello
75{ 74{
76 struct GNUNET_MessageHeader header; 75 struct GNUNET_MessageHeader header;
77 struct GNUNET_HashCode global_id; 76 struct GNUNET_HashCode global_id;
77};
78
79struct ConsensusRoundHeader
80{
81 struct GNUNET_MessageHeader header;
78 uint8_t round; 82 uint8_t round;
83 uint8_t exp_round;
84 uint8_t exp_subround;
79}; 85};
80 86
81 87