aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_consensus_service.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/include/gnunet_consensus_service.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/include/gnunet_consensus_service.h')
-rw-r--r--src/include/gnunet_consensus_service.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/include/gnunet_consensus_service.h b/src/include/gnunet_consensus_service.h
index 4462144ea..f43cc1aa6 100644
--- a/src/include/gnunet_consensus_service.h
+++ b/src/include/gnunet_consensus_service.h
@@ -164,21 +164,12 @@ void
164GNUNET_CONSENSUS_get_delta_cancel (struct GNUNET_CONSENSUS_DeltaRequest *dr); 164GNUNET_CONSENSUS_get_delta_cancel (struct GNUNET_CONSENSUS_DeltaRequest *dr);
165 165
166 166
167struct GNUNET_CONSENSUS_Group
168{
169 unsigned int num_members;
170 uint64_t total_elements_in_group;
171 const struct GNUNET_PeerIdentity **members;
172};
173
174
175/** 167/**
176 * Called when a conclusion was successful. 168 * Called when a conclusion was successful.
177 * 169 *
178 * @param cls 170 * @param cls
179 * @param group
180 */ 171 */
181typedef void (*GNUNET_CONSENSUS_ConcludeCallback) (void *cls, const struct GNUNET_CONSENSUS_Group *group); 172typedef void (*GNUNET_CONSENSUS_ConcludeCallback) (void *cls);
182 173
183 174
184/** 175/**
@@ -194,7 +185,6 @@ typedef void (*GNUNET_CONSENSUS_ConcludeCallback) (void *cls, const struct GNUNE
194void 185void
195GNUNET_CONSENSUS_conclude (struct GNUNET_CONSENSUS_Handle *consensus, 186GNUNET_CONSENSUS_conclude (struct GNUNET_CONSENSUS_Handle *consensus,
196 struct GNUNET_TIME_Relative timeout, 187 struct GNUNET_TIME_Relative timeout,
197 unsigned int min_group_size_in_consensus,
198 GNUNET_CONSENSUS_ConcludeCallback conclude, 188 GNUNET_CONSENSUS_ConcludeCallback conclude,
199 void *conclude_cls); 189 void *conclude_cls);
200 190