changes in get and put code.
[oweals/gnunet.git] / src / peerinfo / perf_peerinfo_api.c
old mode 100755 (executable)
new mode 100644 (file)
index 41533bd..4eb84e8
@@ -82,12 +82,10 @@ address_generator (void *cls, size_t max, void *buf)
 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, GNUNET_NO);
+  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);
 }
@@ -108,7 +106,7 @@ process (void *cls, const struct GNUNET_PeerIdentity *peer,
 
 
 static void
-run (void *cls, 
+run (void *cls,
      const struct GNUNET_CONFIGURATION_Handle *cfg,
      struct GNUNET_TESTING_Peer *peer)
 {
@@ -120,7 +118,7 @@ run (void *cls,
   {
     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);
   }