#include "gnunet_dht_service.h"
/* DEFINES */
-#define VERBOSE GNUNET_YES
+#define VERBOSE GNUNET_NO
/* Timeout for entire testcase */
#define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5)
const struct GNUNET_PeerIdentity * const *get_path,
const struct GNUNET_PeerIdentity * const *put_path,
enum GNUNET_BLOCK_Type type,
- uint32_t size,
+ size_t size,
const void *data)
{
GNUNET_HashCode original_key; /* Key data was stored data under */
GNUNET_HashCode key; /* Key for data lookup */
memset(&key, 42, sizeof(GNUNET_HashCode)); /* Set the key to the same thing as when data was inserted */
global_get_handle = GNUNET_DHT_get_start(peer2dht, GNUNET_TIME_relative_get_forever(),
- 1 /* FIXME: use real type */, &key,
+ GNUNET_BLOCK_TYPE_TEST,
+ &key,
GNUNET_DHT_RO_NONE,
NULL, 0,
NULL, 0,
GNUNET_DHT_put(peer1dht,
&key,
GNUNET_DHT_RO_NONE,
- 1 /* FIXME: use real type */,
+ GNUNET_BLOCK_TYPE_TEST,
sizeof(data), data,
GNUNET_TIME_UNIT_FOREVER_ABS,
GNUNET_TIME_UNIT_FOREVER_REL,