Skip to content
Snippets Groups Projects
Commit 9e900d1d authored by David Goulet's avatar David Goulet :panda_face: Committed by Nick Mathewson
Browse files

hs: Don't enter the HS v3 subsystem without a live consensus


The service needs the latest SRV and set of relays for the best accurate
hashring to upload its descriptor to so it needs a live consensus thus don't
do anything until we have it.

Fixes #23331

Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent f2f1cab2
No related branches found
No related tags found
No related merge requests found
......@@ -2110,7 +2110,8 @@ hs_service_callback(time_t now, const or_options_t *options)
/* We need to at least be able to build circuits and that we actually have
* a working network. */
if (!have_completed_a_circuit() || net_is_disabled()) {
if (!have_completed_a_circuit() || net_is_disabled() ||
networkstatus_get_live_consensus(now) == NULL) {
goto end;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment