gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: -disable internal sanity checks by defau


From: gnunet
Subject: [gnunet] branch master updated: -disable internal sanity checks by default
Date: Wed, 23 Nov 2022 15:32:20 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 97269512d -disable internal sanity checks by default
97269512d is described below

commit 97269512df1790b58a75d03282ab03332c92f952
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Nov 23 15:32:17 2022 +0100

    -disable internal sanity checks by default
---
 src/dht/gnunet-service-dht_clients.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 @@
  * 1: check all external inputs
  * 2: check internal computations as well
  */
-#define SANITY_CHECKS 2
+#define SANITY_CHECKS 0
 
 /**
  * Should routing details be logged to stderr (for debugging)?
@@ -506,6 +506,7 @@ handle_dht_local_put (void *cls,
        (unsigned long) (size - sizeof(struct GNUNET_DHT_ClientPutMessage)),
        GNUNET_h2s (&dht_msg->key),
        (unsigned int) bd.type);
+#if SANITY_CHECKS > 0
   if (GNUNET_OK !=
       GNUNET_BLOCK_check_block (GDS_block_context,
                                 bd.type,
@@ -515,6 +516,7 @@ handle_dht_local_put (void *cls,
     GNUNET_break (0);
     return;
   }
+#endif
   GNUNET_STATISTICS_update (GDS_stats,
                             "# PUT requests received from clients",
                             1,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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