summaryrefslogtreecommitdiff
path: root/src/feature/relay/onion_queue.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-11-09 15:10:19 -0500
committerDavid Goulet <dgoulet@torproject.org>2022-11-09 15:12:51 -0500
commit780ca741f3738877ad577f84fcebf6874427b2bc (patch)
treebf52100dace97bd089963f3e3f7b2e1ee82d4e17 /src/feature/relay/onion_queue.h
parente3f6908984c6f2e6361a1a15f37d6bb0647efda9 (diff)
downloadtor-780ca741f3738877ad577f84fcebf6874427b2bc.tar.gz
tor-780ca741f3738877ad577f84fcebf6874427b2bc.zip
relay: Cache onion queue parameters on consensus change
This is part of the fast path so we need to cache consensus parameters instead of querying it everytime we need to learn a value. Part of #40704 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay/onion_queue.h')
-rw-r--r--src/feature/relay/onion_queue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/relay/onion_queue.h b/src/feature/relay/onion_queue.h
index 5ac1b1b280..0c2b97c2b0 100644
--- a/src/feature/relay/onion_queue.h
+++ b/src/feature/relay/onion_queue.h
@@ -14,6 +14,8 @@
struct create_cell_t;
+void onion_consensus_has_changed(const networkstatus_t *ns);
+
int onion_pending_add(or_circuit_t *circ, struct create_cell_t *onionskin);
or_circuit_t *onion_next_task(struct create_cell_t **onionskin_out);
int onion_num_pending(uint16_t handshake_type);