}
if (datacache != NULL)
- GNUNET_DATACACHE_put(datacache, &peer->hashPubKey, sizeof(struct GNUNET_PeerIdentity), (const char *)peer, 0, GNUNET_TIME_absolute_get_forever());
+ GNUNET_DATACACHE_put(datacache, &peer->hashPubKey, sizeof(struct GNUNET_PeerIdentity), (const char *)peer, GNUNET_BLOCK_TYPE_DHT_HELLO, GNUNET_TIME_absolute_get_forever());
ret = try_add_peer(peer,
find_current_bucket(&peer->hashPubKey),
latency,
HOSTNAME = localhost
PORT = 2100
+[block]
+plugins = test dht
+
[dhtcache]
QUOTA = 1000000
DATABASE = sqlite
sleep 1
echo -n "TEST: Testing put..."
-if ! $putexe -k testkey -d testdata > $out ; then
+if ! $putexe -k testkey -d testdata -T 8 > $out ; then
echo "FAIL: error running $putexe"
echo "Command output was:"
cat $out
echo "Result 0, type 0:" > $checkout
echo "testdata" >> $checkout
-if ! $getexe -k testkey -T 1 > $out ; then
+if ! $getexe -k testkey -T 8 > $out ; then
echo "FAIL: error running $putexe"
echo "Command output was:"
cat $out
get_context->get_handle = GNUNET_DHT_get_start(get_context->dht_handle,
GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 5),
- 0 /* fixme: real type */,
+ GNUNET_BLOCK_TYPE_DHT_HELLO,
&get_context->peer->hashPubKey,
GNUNET_DHT_RO_NONE,
NULL, 0,
AUTOSTART = NO
[dht]
-DEBUG = NO
+DEBUG = YES
AUTOSTART = YES
#PREFIX = xterm -T dht -e gdb --args
PORT = 2100
DISABLE_SOCKET_FORWARDING = YES
+[block]
+plugins = test dht
+
[dhtcache]
QUOTA = 1000000
DATABASE = sqlite