[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor] 25/77: drop the default min effort to 20



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

dgoulet pushed a commit to branch main
in repository tor.

commit e436ce2a3c6a67e466090d9b7db136d7dd0f8385
Author: Roger Dingledine <arma@xxxxxxxxxxxxxx>
AuthorDate: Fri Jul 1 17:04:14 2022 -0400

    drop the default min effort to 20
    
    effort 100 is really quite expensive
---
 src/feature/hs/hs_config.h | 2 +-
 src/feature/hs/hs_pow.h    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/feature/hs/hs_config.h b/src/feature/hs/hs_config.h
index 578aa468e2..15af172674 100644
--- a/src/feature/hs/hs_config.h
+++ b/src/feature/hs/hs_config.h
@@ -27,7 +27,7 @@
 
 /* Default values for the HS anti-DoS PoW defenses. */
 #define HS_CONFIG_V3_POW_DEFENSES_DEFAULT 0
-#define HS_CONFIG_V3_POW_DEFENSES_MIN_EFFORT_DEFAULT 100
+#define HS_CONFIG_V3_POW_DEFENSES_MIN_EFFORT_DEFAULT 20
 #define HS_CONFIG_V3_POW_DEFENSES_SVC_BOTTOM_CAPACITY_DEFAULT 100
 
 /* API */
diff --git a/src/feature/hs/hs_pow.h b/src/feature/hs/hs_pow.h
index 679332e644..ee7b3c45d8 100644
--- a/src/feature/hs/hs_pow.h
+++ b/src/feature/hs/hs_pow.h
@@ -17,7 +17,7 @@ typedef unsigned __int128 uint128_t;
 #include "lib/evloop/compat_libevent.h"
 #include "lib/smartlist_core/smartlist_core.h"
 
-#define HS_POW_SUGGESTED_EFFORT_DEFAULT 100 // HRPR TODO 5000
+#define HS_POW_SUGGESTED_EFFORT_DEFAULT 20 // HRPR TODO 5000
 /* Service updates the suggested effort every HS_UPDATE_PERIOD seconds. */
 #define HS_UPDATE_PERIOD 300 // HRPR TODO Should be consensus
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits