#include "platform.h"
#include "gnunet_hello_lib.h"
#include "gnunet_util_lib.h"
-#include "gnunet_testing_lib-new.h"
+#include "gnunet_testing_lib.h"
#include "gnunet_peerinfo_service.h"
#include "peerinfo.h"
#include <gauger.h>
static void
add_peer (size_t i)
{
- struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pkey;
struct GNUNET_HELLO_Message *h2;
- memset (&pkey, i, sizeof (pkey));
- GNUNET_CRYPTO_hash (&pkey, sizeof (pkey), &pid.hashPubKey);
- h2 = GNUNET_HELLO_create (&pkey, &address_generator, &i);
+ memset (&pid, i, sizeof (pid));
+ h2 = GNUNET_HELLO_create (&pid.public_key, &address_generator, &i, GNUNET_NO);
GNUNET_PEERINFO_add_peer (h, h2, NULL, NULL);
GNUNET_free (h2);
}
static void
-run (void *cls,
+run (void *cls,
const struct GNUNET_CONFIGURATION_Handle *cfg,
struct GNUNET_TESTING_Peer *peer)
{
{
add_peer (i);
ic[i] =
- GNUNET_PEERINFO_iterate (h, NULL,
+ GNUNET_PEERINFO_iterate (h, GNUNET_YES, NULL,
GNUNET_TIME_relative_multiply
(GNUNET_TIME_UNIT_SECONDS, 30), &process, cls);
}