hxing
[oweals/gnunet.git] / src / core / test_core_quota_compliance.c
index c909892e1b58462cd231108157c80f37406a37e0..5fce06b31d0f8d7118c31d0bd9587a2e1584d558 100644 (file)
@@ -504,8 +504,7 @@ static struct GNUNET_CORE_MessageHandler handlers[] = {
 
 static void
 init_notify (void *cls, struct GNUNET_CORE_Handle *server,
-             const struct GNUNET_PeerIdentity *my_identity,
-             const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *publicKey)
+             const struct GNUNET_PeerIdentity *my_identity)
 {
   struct PeerContext *p = cls;
 
@@ -534,7 +533,8 @@ init_notify (void *cls, struct GNUNET_CORE_Handle *server,
                 "Asking core (1) to connect to peer `%4s'\n",
                 GNUNET_i2s (&p2.id));
 #endif
-    GNUNET_CORE_peer_request_connect (p1.ch, &p2.id, NULL, NULL);
+    GNUNET_TRANSPORT_try_connect (p1.th, &p2.id);
+    GNUNET_TRANSPORT_try_connect (p2.th, &p1.id);
   }
 }