From d90628063e670fe2670b20e85a1ba29c45081955 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 7 Dec 2012 10:29:44 +0000 Subject: [PATCH] -write unique peer ID to file for each peer --- src/testbed/gnunet-service-testbed.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, -- 2.25.1