From: Christian Grothoff Date: Fri, 7 Dec 2012 10:29:44 +0000 (+0000) Subject: -write unique peer ID to file for each peer X-Git-Tag: initial-import-from-subversion-38251~10577 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d90628063e670fe2670b20e85a1ba29c45081955;p=oweals%2Fgnunet.git -write unique peer ID to file for each peer --- diff --git a/src/testbed/gnunet-service-testbed.c b/src/testbed/gnunet-service-testbed.c index 2b138129a..abf91a55b 100644 --- a/src/testbed/gnunet-service-testbed.c +++ b/src/testbed/gnunet-service-testbed.c @@ -2415,11 +2415,16 @@ handle_peer_create (void *cls, struct GNUNET_SERVER_Client *client, return; } GNUNET_free (config); + GNUNET_CONFIGURATION_set_value_number (cfg, + "TESTBED", + "PEERID", + (unsigned long long) peer_id); peer = GNUNET_malloc (sizeof (struct Peer)); peer->is_remote = GNUNET_NO; peer->details.local.cfg = cfg; peer->id = peer_id; - LOG_DEBUG ("Creating peer with id: %u\n", peer->id); + LOG_DEBUG ("Creating peer with id: %u\n", + (unsigned int) peer->id); peer->details.local.peer = GNUNET_TESTING_peer_configure (master_context->system, peer->details.local.cfg, peer->id,