- debug
[oweals/gnunet.git] / src / mesh / gnunet-service-mesh_dht.c
index 067f7f4e1b0228aeba6635aa6d9b60047d000f62..63f98a4d743678ee9b7230472a9dabe143f97d4c 100644 (file)
@@ -25,6 +25,7 @@
 #include "gnunet_dht_service.h"
 #include "gnunet_statistics_service.h"
 
+#include "block_mesh.h"
 #include "mesh_path.h"
 #include "gnunet-service-mesh_dht.h"
 #include "gnunet-service-mesh_peer.h"
@@ -274,7 +275,7 @@ announce_id (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 void
 GMD_init (const struct GNUNET_CONFIGURATION_Handle *c)
 {
-
+  LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n");
   if (GNUNET_OK !=
       GNUNET_CONFIGURATION_get_value_number (c, "MESH", "DHT_REPLICATION_LEVEL",
                                              &dht_replication_level))
@@ -333,6 +334,7 @@ GMD_search (const struct GNUNET_PeerIdentity *peer_id,
        "  Starting DHT GET for peer %s\n", GNUNET_i2s (peer_id));
   GNUNET_CRYPTO_hash (peer_id, sizeof (struct GNUNET_PeerIdentity), &phash);
   h = GNUNET_new (struct GMD_search_handle);
+  h->callback = callback;
   h->cls = cls;
   h->dhtget = GNUNET_DHT_get_start (dht_handle,    /* handle */
                                     GNUNET_BLOCK_TYPE_MESH_PEER, /* type */