diff options
Diffstat (limited to 'src/consensus/consensus_protocol.h')
-rw-r--r-- | src/consensus/consensus_protocol.h | 45 |
1 files changed, 4 insertions, 41 deletions
diff --git a/src/consensus/consensus_protocol.h b/src/consensus/consensus_protocol.h index 32c3d8b09..af4d74100 100644 --- a/src/consensus/consensus_protocol.h +++ b/src/consensus/consensus_protocol.h | |||
@@ -35,54 +35,17 @@ | |||
35 | 35 | ||
36 | GNUNET_NETWORK_STRUCT_BEGIN | 36 | GNUNET_NETWORK_STRUCT_BEGIN |
37 | 37 | ||
38 | struct StrataMessage | 38 | /** |
39 | { | 39 | * Sent as context message for set reconciliation. |
40 | struct GNUNET_MessageHeader header; | 40 | */ |
41 | uint8_t round; | 41 | struct ConsensusRoundMessage |
42 | uint8_t exp_round; | ||
43 | uint8_t exp_subround; | ||
44 | /* struct GNUNET_HashCode hash_buckets[ibf_size*num_strata] */ | ||
45 | /* struct GNUNET_HashCode id_buckets[ibf_size*num_strata] */ | ||
46 | /* uint8_t count_buckets[ibf_size*num_strata] */ | ||
47 | }; | ||
48 | |||
49 | struct DifferenceDigest | ||
50 | { | 42 | { |
51 | struct GNUNET_MessageHeader header; | 43 | struct GNUNET_MessageHeader header; |
52 | uint8_t order; | ||
53 | uint8_t round; | 44 | uint8_t round; |
54 | uint8_t exp_round; | 45 | uint8_t exp_round; |
55 | uint8_t exp_subround; | 46 | uint8_t exp_subround; |
56 | /* rest: IBF */ | ||
57 | }; | ||
58 | |||
59 | |||
60 | struct Element | ||
61 | { | ||
62 | struct GNUNET_MessageHeader header; | ||
63 | struct GNUNET_HashCode hash; | ||
64 | }; | 47 | }; |
65 | 48 | ||
66 | |||
67 | struct ElementRequest | ||
68 | { | ||
69 | struct GNUNET_MessageHeader header; | ||
70 | /* struct GNUNET_HashCode[] rest */ | ||
71 | }; | ||
72 | |||
73 | struct ConsensusHello | ||
74 | { | ||
75 | struct GNUNET_MessageHeader header; | ||
76 | struct GNUNET_HashCode global_id; | ||
77 | }; | ||
78 | |||
79 | struct ConsensusRoundMessage | ||
80 | { | ||
81 | struct GNUNET_MessageHeader header; | ||
82 | uint8_t round; | ||
83 | }; | ||
84 | |||
85 | |||
86 | GNUNET_NETWORK_STRUCT_END | 49 | GNUNET_NETWORK_STRUCT_END |
87 | 50 | ||
88 | #endif | 51 | #endif |