diff options
author | David Goulet <dgoulet@torproject.org> | 2022-06-29 11:56:05 -0400 |
---|---|---|
committer | Micah Elizabeth Scott <beth@torproject.org> | 2023-05-10 07:37:11 -0700 |
commit | 4eb783e97b20c830a1a4dff91cef13bcfd4f713f (patch) | |
tree | c65643762e8150db623a1bd11c5ca2ed77238cd5 /src/feature/hs/hs_cell.h | |
parent | f0b63ca242a66cb5172e6b11a9f068ed348f601b (diff) | |
download | tor-4eb783e97b20c830a1a4dff91cef13bcfd4f713f.tar.gz tor-4eb783e97b20c830a1a4dff91cef13bcfd4f713f.zip |
hs: Priority queue for rendezvous requests
If PoW are enabled, use a priority queue by effort for the rendezvous
requests hooked into the mainloop.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_cell.h')
-rw-r--r-- | src/feature/hs/hs_cell.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/hs/hs_cell.h b/src/feature/hs/hs_cell.h index 61c0a94b20..7b547991e6 100644 --- a/src/feature/hs/hs_cell.h +++ b/src/feature/hs/hs_cell.h @@ -60,6 +60,8 @@ typedef struct hs_cell_intro_rdv_data_t { smartlist_t *link_specifiers; /** Congestion control parameters. */ unsigned int cc_enabled : 1; + /** PoW effort. */ + uint32_t pow_effort; } hs_cell_intro_rdv_data_t; /** This data structure contains data that we need to parse an INTRODUCE2 cell |