From: Bart Polot Date: Wed, 26 Jun 2013 00:18:51 +0000 (+0000) Subject: - separate key generation from path managemente X-Git-Tag: initial-import-from-subversion-38251~8636 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=05861a8004f061831ee419c4ccc093faa7ad0fe5;p=oweals%2Fgnunet.git - separate key generation from path managemente --- diff --git a/src/mesh/gnunet-service-mesh-new.c b/src/mesh/gnunet-service-mesh-new.c index 5a5db8698..3be45aec8 100644 --- a/src/mesh/gnunet-service-mesh-new.c +++ b/src/mesh/gnunet-service-mesh-new.c @@ -4974,8 +4974,6 @@ key_generation_cb (void *cls, const char *emsg) { const struct GNUNET_CONFIGURATION_Handle *c = cls; - struct MeshPeerInfo *peer; - struct MeshPeerPath *p; keygen = NULL; if (NULL == pk) @@ -5017,13 +5015,6 @@ key_generation_cb (void *cls, announce_id_task = GNUNET_SCHEDULER_add_now (&announce_id, cls); - /* Create a peer_info for the local peer */ - peer = peer_get (&my_full_id); - p = path_new (1); - p->peers[0] = myid; - GNUNET_PEER_change_rc (myid, 1); - peer_info_add_path (peer, p, GNUNET_YES); - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Mesh service running\n"); }