summaryrefslogtreecommitdiff
path: root/src/consensus
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-02-27 01:25:17 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-02-27 01:25:17 +0100
commit34cbc615577b80ad57c706c0001123f3d5cb752d (patch)
tree1501fa69445ae91d0b649ffdfa39acdf03894e44 /src/consensus
parent6da407ad72fdca282094ccdb5558ece9638e3bd3 (diff)
missing file
Diffstat (limited to 'src/consensus')
-rw-r--r--src/consensus/gnunet-service-consensus.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/consensus/gnunet-service-consensus.c b/src/consensus/gnunet-service-consensus.c
index 44b6dc21b..c56741c67 100644
--- a/src/consensus/gnunet-service-consensus.c
+++ b/src/consensus/gnunet-service-consensus.c
@@ -487,6 +487,11 @@ struct ConsensusSession
* State of our early stopping scheme.
*/
int early_stopping;
+
+ /**
+ * Our set size from the first round.
+ */
+ uint64_t first_size;
};
/**
@@ -1061,6 +1066,10 @@ set_result_cb (void *cls,
{
rfn_commit (output_rfn, task_other_peer (task));
}
+ if (PHASE_KIND_ALL_TO_ALL == task->key->phase)
+ {
+ session->first_size = current_size;
+ }
finish_task (task);
break;
case GNUNET_SET_STATUS_FAILURE: