WiP
[oweals/gnunet.git] / src / dht / gnunet-dht-put.c
index 469675409f1b46e2f704ccd621221999cec953a9..6bd9f90452553e76aeb5cfd7323615f1ea6a857b 100644 (file)
@@ -136,6 +136,9 @@ run (void *cls,
     fprintf (stderr,
             _("Connected to %s service!\n"), "DHT");
 
+  if (query_type == GNUNET_BLOCK_TYPE_ANY) /* Type of data not set */
+    query_type = GNUNET_BLOCK_TYPE_TEST;
+
   GNUNET_CRYPTO_hash (query_key, strlen (query_key), &key);
 
   timeout =
@@ -151,6 +154,7 @@ run (void *cls,
              query_key, data);
   GNUNET_DHT_put (dht_handle,
                  &key, 
+                 DEFAULT_PUT_REPLICATION,
                  GNUNET_DHT_RO_NONE,
                  query_type, 
                  strlen (data), data,