From 5379138eb2686137d4d50bc32d2508ad56ede264 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 13 Aug 2013 01:12:55 +0000 Subject: [PATCH] - delayed requests correctly when in 'begin' round --- src/consensus/gnunet-service-consensus.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/consensus/gnunet-service-consensus.c b/src/consensus/gnunet-service-consensus.c index a14eddebe..e9d7f05ea 100644 --- a/src/consensus/gnunet-service-consensus.c +++ b/src/consensus/gnunet-service-consensus.c @@ -494,8 +494,6 @@ find_partners (struct ConsensusSession *session) largest_arc <<= 1; num_ghosts = largest_arc - session->num_peers; - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "num ghosts: %d\n", num_ghosts); - if (0 == (my_idx & arc)) { /* we are outgoing */ @@ -934,6 +932,9 @@ set_listen_cb (void *cls, switch (session->current_round) { + case CONSENSUS_ROUND_BEGIN: + /* we're in the begin round, so requests for the exchange round may + * come in, they will be delayed for now! */ case CONSENSUS_ROUND_EXCHANGE: cmp = rounds_compare (session, &round_info); if (cmp > 0) -- 2.25.1