mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
drop the default min effort to 20
effort 100 is really quite expensive
This commit is contained in:
parent
a575e35c17
commit
e436ce2a3c
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
/* Default values for the HS anti-DoS PoW defenses. */
|
/* Default values for the HS anti-DoS PoW defenses. */
|
||||||
#define HS_CONFIG_V3_POW_DEFENSES_DEFAULT 0
|
#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
|
#define HS_CONFIG_V3_POW_DEFENSES_SVC_BOTTOM_CAPACITY_DEFAULT 100
|
||||||
|
|
||||||
/* API */
|
/* API */
|
||||||
|
@ -17,7 +17,7 @@ typedef unsigned __int128 uint128_t;
|
|||||||
#include "lib/evloop/compat_libevent.h"
|
#include "lib/evloop/compat_libevent.h"
|
||||||
#include "lib/smartlist_core/smartlist_core.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. */
|
/* Service updates the suggested effort every HS_UPDATE_PERIOD seconds. */
|
||||||
#define HS_UPDATE_PERIOD 300 // HRPR TODO Should be consensus
|
#define HS_UPDATE_PERIOD 300 // HRPR TODO Should be consensus
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user