Fix TESTS_ENVIRONMENT setting (allow GNUNET_PREFIX to be overriden, allow TESTS_ENVIR...
[oweals/gnunet.git] / src / experimentation / gnunet-daemon-experimentation_nodes.c
index aa8a0dbbe7d7ca461cf2d795aa0fadec34bf4965..1c4152793e7ee5bdb07216d49b691726095a6bd5 100644 (file)
@@ -210,7 +210,9 @@ schedule_transmisson (struct NodeComCtx *e_ctx)
   if (NULL != e_ctx->n->cth)
     return;
 
-  e_ctx->n->cth = GNUNET_CORE_notify_transmit_ready (ch, GNUNET_NO, 0, FAST_TIMEOUT,
+  e_ctx->n->cth = GNUNET_CORE_notify_transmit_ready (ch, GNUNET_NO,
+                                                     GNUNET_CORE_PRIO_BEST_EFFORT,
+                                                     FAST_TIMEOUT,
                                                     &e_ctx->n->id, e_ctx->size,
                                                     transmit_read_wrapper, e_ctx);
   if (NULL == e_ctx->n->cth)
@@ -281,7 +283,7 @@ send_experimentation_request_cb (void *cls, size_t bufsize, void *buf)
   size_t ri_size = sizeof (struct GNUNET_CRYPTO_EddsaPublicKey) * my_issuer_count;
   size_t total_size = msg_size + ri_size;
   struct GNUNET_CRYPTO_EddsaPublicKey *issuers;
-       
+
   n->cth = NULL;
   if (NULL == buf)
   {
@@ -1044,7 +1046,7 @@ GED_nodes_send_start_ack (struct Node *n, struct Experiment *e)
                        "Sending %s for experiment request to peer `%s' for experiment `%s'\n",
                        "START_ACK" ,GNUNET_i2s(&n->id), e->name);
 
-       e_ctx = GNUNET_malloc (sizeof (struct NodeComCtx));
+       e_ctx = GNUNET_new (struct NodeComCtx);
        e_ctx->n = n;
        e_ctx->e = e;
        e_ctx->size = sizeof (struct GED_start_ack_message) + strlen (e->name) + 1;
@@ -1071,7 +1073,7 @@ GED_nodes_send_start (struct Node *n, struct Experiment *e)
                        "Sending %s for experiment request to peer `%s' for experiment `%s'\n",
                        "START", GNUNET_i2s(&n->id), e->name);
 
-       e_ctx = GNUNET_malloc (sizeof (struct NodeComCtx));
+       e_ctx = GNUNET_new (struct NodeComCtx);
        e_ctx->n = n;
        e_ctx->e = e;
        e_ctx->size = sizeof (struct GED_start_message) + strlen (e->name) + 1;