gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r9712 - GNUnet/src/applications/dv/module


From: gnunet
Subject: [GNUnet-SVN] r9712 - GNUnet/src/applications/dv/module
Date: Mon, 7 Dec 2009 03:06:15 +0100

Author: nevans
Date: 2009-12-07 03:06:15 +0100 (Mon, 07 Dec 2009)
New Revision: 9712

Modified:
   GNUnet/src/applications/dv/module/dv.c
Log:
get rid of add neighbor errors (due to high cost)

Modified: GNUnet/src/applications/dv/module/dv.c
===================================================================
--- GNUnet/src/applications/dv/module/dv.c      2009-12-06 20:03:43 UTC (rev 
9711)
+++ GNUnet/src/applications/dv/module/dv.c      2009-12-07 02:06:15 UTC (rev 
9712)
@@ -819,12 +819,12 @@
   if (cost > ctx->fisheye_depth)
     {
       ret = GNUNET_NO;
-
+#if DEBUG_DV_MAINTAIN
       GNUNET_GE_LOG (coreAPI->ectx,
                      GNUNET_GE_WARNING | GNUNET_GE_ADMIN | GNUNET_GE_USER |
                      GNUNET_GE_BULK, "Node cost %d too high, not adding this 
peer!\n",
                      cost);
-
+#endif
       if ((GNUNET_YES ==
            GNUNET_multi_hash_map_contains (ctx->extended_neighbors,
                                            &peer->hashPubKey))
@@ -981,11 +981,14 @@
                        ntohl (nmsg->cost) + 1);
   if (stats != NULL)
     stats->change (stat_dv_received_gossips, 1);
+
+#if DEBUG_DV_MAINTAIN
   if (GNUNET_OK != ret)
     GNUNET_GE_LOG (coreAPI->ectx,
                    GNUNET_GE_DEBUG | GNUNET_GE_REQUEST | GNUNET_GE_USER,
                    _("%s: Problem adding/updating neighbor in `%s'\n"),
                    &shortID, "dv");
+#endif
 
 #if DEBUG_DV
   GNUNET_hash_to_enc (&sender->hashPubKey, &from);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]