diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-09-09 12:15:23 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-09-09 12:15:23 +0000 |
commit | 3020d7339962057bb2275a0522a8c660e1835820 (patch) | |
tree | 43f740551ae4a84dfbb2f14976df496fb0100653 /src/dht/dht.h | |
parent | b302e1d9d1df24f4175c730713f20916768ce87a (diff) | |
download | gnunet-3020d7339962057bb2275a0522a8c660e1835820.tar.gz gnunet-3020d7339962057bb2275a0522a8c660e1835820.zip |
better values for dht bloomfilter, reduce collisions for peers even with large routing tables
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r-- | src/dht/dht.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h index 86edc9997..94276b8d5 100644 --- a/src/dht/dht.h +++ b/src/dht/dht.h | |||
@@ -29,17 +29,20 @@ | |||
29 | 29 | ||
30 | #define DEBUG_DHT GNUNET_NO | 30 | #define DEBUG_DHT GNUNET_NO |
31 | 31 | ||
32 | #define DEBUG_DHT_ROUTING GNUNET_NO | 32 | /** |
33 | * Needs to be GNUNET_YES for logging to dhtlog to work! | ||
34 | */ | ||
35 | #define DEBUG_DHT_ROUTING GNUNET_YES | ||
33 | 36 | ||
34 | #define DHT_BLOOM_SIZE 32 | 37 | #define DHT_BLOOM_SIZE 128 |
35 | 38 | ||
36 | #define DHT_BLOOM_K 8 | 39 | #define DHT_BLOOM_K 6 |
37 | 40 | ||
38 | #define MAX_OUTSTANDING_FORWARDS 100 | 41 | #define MAX_OUTSTANDING_FORWARDS 100 |
39 | 42 | ||
40 | #define DHT_FORWARD_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5) | 43 | #define DHT_FORWARD_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 5) |
41 | 44 | ||
42 | #define DHT_REPUBLISH_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 1) | 45 | #define DHT_REPUBLISH_FREQUENCY GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MINUTES, 60) |
43 | 46 | ||
44 | #define DHT_SEND_PRIORITY 4 | 47 | #define DHT_SEND_PRIORITY 4 |
45 | 48 | ||