From 8b41e09a775e882096364210317813c830160a5b Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 28 Jun 2022 11:42:35 -0400 Subject: hs: Client now solve PoW if present At this commit, the tor main loop solves it. We might consider moving this to the CPU pool at some point. Signed-off-by: David Goulet --- src/core/or/origin_circuit_st.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/core') diff --git a/src/core/or/origin_circuit_st.h b/src/core/or/origin_circuit_st.h index c5c255bb49..fd5424c450 100644 --- a/src/core/or/origin_circuit_st.h +++ b/src/core/or/origin_circuit_st.h @@ -212,6 +212,12 @@ struct origin_circuit_t { * (in host byte order) for response comparison. */ uint32_t pathbias_probe_nonce; + /** Set iff this is a hidden-service circuit for a HS with PoW defenses + * enabled, so that we know to be more lenient with timing out the + * circuit-build to allow the service time to work through the queue of + * requests. */ + unsigned int hs_with_pow_circ : 1; + /** Set iff this circuit has been given a relaxed timeout because * no circuits have opened. Used to prevent spamming logs. */ unsigned int relaxed_timeout : 1; -- cgit v1.2.3-54-g00ecf