gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14254 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r14254 - gnunet/src/dht
Date: Tue, 25 Jan 2011 11:43:36 +0100

Author: nevans
Date: 2011-01-25 11:43:35 +0100 (Tue, 25 Jan 2011)
New Revision: 14254

Modified:
   gnunet/src/dht/gnunet-dht-driver.c
Log:
adjust bloomfilter size based on number of malicious peers

Modified: gnunet/src/dht/gnunet-dht-driver.c
===================================================================
--- gnunet/src/dht/gnunet-dht-driver.c  2011-01-25 10:37:29 UTC (rev 14253)
+++ gnunet/src/dht/gnunet-dht-driver.c  2011-01-25 10:43:35 UTC (rev 14254)
@@ -3077,7 +3077,8 @@
     }
 
   /* Create the bloomfilter for choosing which peers to set malicious */
-  malicious_bloom = GNUNET_CONTAINER_bloomfilter_init (NULL, DHT_BLOOM_SIZE * 
10, DHT_BLOOM_K);
+  if (malicious_droppers > 0)
+    malicious_bloom = GNUNET_CONTAINER_bloomfilter_init (NULL, DHT_BLOOM_K * 
malicious_droppers, DHT_BLOOM_K);
 
   /* The normal behavior of the DHT is to do find peer requests
    * on its own.  Only if this is explicitly turned off should




reply via email to

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