aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/gnunet-service-consensus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/consensus/gnunet-service-consensus.c')
-rw-r--r--src/consensus/gnunet-service-consensus.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/consensus/gnunet-service-consensus.c b/src/consensus/gnunet-service-consensus.c
index 5ebff524c..1c2c78422 100644
--- a/src/consensus/gnunet-service-consensus.c
+++ b/src/consensus/gnunet-service-consensus.c
@@ -116,7 +116,7 @@ struct ConsensusSession
116 /** 116 /**
117 * Queued messages to the client. 117 * Queued messages to the client.
118 */ 118 */
119 struct GNUNET_MQ_MessageQueue *client_mq; 119 struct GNUNET_MQ_Handle *client_mq;
120 120
121 /** 121 /**
122 * Timeout for all rounds together, single rounds will schedule a timeout task 122 * Timeout for all rounds together, single rounds will schedule a timeout task
@@ -217,9 +217,9 @@ struct ConsensusPeerInformation
217 struct GNUNET_SET_OperationHandle *set_op; 217 struct GNUNET_SET_OperationHandle *set_op;
218 218
219 /** 219 /**
220 * Has conclude been called on the set_op? 220 * Has commit been called on the set_op?
221 */ 221 */
222 int set_op_concluded; 222 int set_op_commited;
223}; 223};
224 224
225 225
@@ -548,14 +548,14 @@ subround_over (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
548 GNUNET_SET_operation_cancel (session->partner_outgoing->set_op); 548 GNUNET_SET_operation_cancel (session->partner_outgoing->set_op);
549 } 549 }
550 session->partner_outgoing->set_op = 550 session->partner_outgoing->set_op =
551 GNUNET_SET_evaluate (&session->partner_outgoing->peer_id, 551 GNUNET_SET_prepare (&session->partner_outgoing->peer_id,
552 &session->global_id, 552 &session->global_id,
553 (struct GNUNET_MessageHeader *) msg, 553 (struct GNUNET_MessageHeader *) msg,
554 0, /* FIXME */ 554 0, /* FIXME */
555 GNUNET_SET_RESULT_ADDED, 555 GNUNET_SET_RESULT_ADDED,
556 set_result_cb, session->partner_outgoing); 556 set_result_cb, session->partner_outgoing);
557 GNUNET_SET_conclude (session->partner_outgoing->set_op, session->element_set); 557 GNUNET_SET_commit (session->partner_outgoing->set_op, session->element_set);
558 session->partner_outgoing->set_op_concluded = GNUNET_YES; 558 session->partner_outgoing->set_op_commited = GNUNET_YES;
559 } 559 }
560 560
561#ifdef GNUNET_EXTRA_LOGGING 561#ifdef GNUNET_EXTRA_LOGGING
@@ -767,12 +767,12 @@ set_listen_cb (void *cls,
767 set_result_cb, &session->info[index]); 767 set_result_cb, &session->info[index]);
768 if (ntohl (msg->exp_subround) == session->exp_subround) 768 if (ntohl (msg->exp_subround) == session->exp_subround)
769 { 769 {
770 cpi->set_op_concluded = GNUNET_YES; 770 cpi->set_op_commited = GNUNET_YES;
771 GNUNET_SET_conclude (cpi->set_op, session->element_set); 771 GNUNET_SET_commit (cpi->set_op, session->element_set);
772 } 772 }
773 else 773 else
774 { 774 {
775 cpi->set_op_concluded = GNUNET_NO; 775 cpi->set_op_commited = GNUNET_NO;
776 } 776 }
777 break; 777 break;
778 default: 778 default: