diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-11-23 15:32:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-11-23 15:32:17 +0100 |
commit | 97269512df1790b58a75d03282ab03332c92f952 (patch) | |
tree | 38ee6a8f73df733d717a44d16f3a10aa8d6629d4 /src | |
parent | 7922fe165de9e83975bd445a0f83d71d2bdb2cc0 (diff) | |
download | gnunet-97269512df1790b58a75d03282ab03332c92f952.tar.gz gnunet-97269512df1790b58a75d03282ab03332c92f952.zip |
-disable internal sanity checks by default
Diffstat (limited to 'src')
-rw-r--r-- | src/dht/gnunet-service-dht_clients.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dht/gnunet-service-dht_clients.c b/src/dht/gnunet-service-dht_clients.c index 19b464e63..b375758ba 100644 --- a/src/dht/gnunet-service-dht_clients.c +++ b/src/dht/gnunet-service-dht_clients.c | |||
@@ -40,7 +40,7 @@ | |||
40 | * 1: check all external inputs | 40 | * 1: check all external inputs |
41 | * 2: check internal computations as well | 41 | * 2: check internal computations as well |
42 | */ | 42 | */ |
43 | #define SANITY_CHECKS 2 | 43 | #define SANITY_CHECKS 0 |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * Should routing details be logged to stderr (for debugging)? | 46 | * Should routing details be logged to stderr (for debugging)? |
@@ -506,6 +506,7 @@ handle_dht_local_put (void *cls, | |||
506 | (unsigned long) (size - sizeof(struct GNUNET_DHT_ClientPutMessage)), | 506 | (unsigned long) (size - sizeof(struct GNUNET_DHT_ClientPutMessage)), |
507 | GNUNET_h2s (&dht_msg->key), | 507 | GNUNET_h2s (&dht_msg->key), |
508 | (unsigned int) bd.type); | 508 | (unsigned int) bd.type); |
509 | #if SANITY_CHECKS > 0 | ||
509 | if (GNUNET_OK != | 510 | if (GNUNET_OK != |
510 | GNUNET_BLOCK_check_block (GDS_block_context, | 511 | GNUNET_BLOCK_check_block (GDS_block_context, |
511 | bd.type, | 512 | bd.type, |
@@ -515,6 +516,7 @@ handle_dht_local_put (void *cls, | |||
515 | GNUNET_break (0); | 516 | GNUNET_break (0); |
516 | return; | 517 | return; |
517 | } | 518 | } |
519 | #endif | ||
518 | GNUNET_STATISTICS_update (GDS_stats, | 520 | GNUNET_STATISTICS_update (GDS_stats, |
519 | "# PUT requests received from clients", | 521 | "# PUT requests received from clients", |
520 | 1, | 522 | 1, |