commit 796d226d1ded943652c2f3d6368af8240b3bbc30
parent f84d461b5560d5675d2a4ce86a040c301b814b51
Author: Jim Newsome <jnewsome@torproject.org>
Date: Tue, 10 Jun 2025 17:13:41 -0500
hs-common: Reduce HS_TIMER_PERIOD_LENGTH_MIN from 30 to 5
This matches the tor-spec change
<https://gitlab.torproject.org/tpo/core/torspec/-/merge_requests/406>
Progress on
<https://gitlab.torproject.org/tpo/core/chutney/-/issues/40038>
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/changes/hsdir-interval b/changes/hsdir-interval
@@ -0,0 +1,2 @@
+ o Minor features (hidden services):
+ - Reduce the minimum value of hsdir_interval to match recent tor-spec change.
diff --git a/src/feature/hs/hs_common.h b/src/feature/hs/hs_common.h
@@ -52,7 +52,7 @@ struct ed25519_keypair_t;
/** The default HS time period length */
#define HS_TIME_PERIOD_LENGTH_DEFAULT 1440 /* 1440 minutes == one day */
/** The minimum time period length as seen in prop224 section [TIME-PERIODS] */
-#define HS_TIME_PERIOD_LENGTH_MIN 30 /* minutes */
+#define HS_TIME_PERIOD_LENGTH_MIN 5 /* minutes */
/** The minimum time period length as seen in prop224 section [TIME-PERIODS] */
#define HS_TIME_PERIOD_LENGTH_MAX (60 * 24 * 10) /* 10 days or 14400 minutes */
@@ -83,7 +83,7 @@ struct ed25519_keypair_t;
/** The default HS time period length */
#define HS_TIME_PERIOD_LENGTH_DEFAULT 1440 /* 1440 minutes == one day */
/** The minimum time period length as seen in prop224 section [TIME-PERIODS] */
-#define HS_TIME_PERIOD_LENGTH_MIN 30 /* minutes */
+#define HS_TIME_PERIOD_LENGTH_MIN 5 /* minutes */
/** The minimum time period length as seen in prop224 section [TIME-PERIODS] */
#define HS_TIME_PERIOD_LENGTH_MAX (60 * 24 * 10) /* 10 days or 14400 minutes */
/** The time period rotation offset as seen in prop224 section