aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/conflux_params.h
blob: 22c3e4ad1f43b45d95bf1b054d73472e61ee8bb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Copyright (c) 2023, The Tor Project, Inc. */
/* See LICENSE for licensing information */

/**
 * \file conflux_params.h
 * \brief Header file for conflux_params.c.
 **/

#ifndef TOR_CONFLUX_PARAMS_H
#define TOR_CONFLUX_PARAMS_H

#include "core/or/or.h"

bool conflux_is_enabled(const struct circuit_t *circ);
uint8_t conflux_params_get_max_linked_set(void);
uint8_t conflux_params_get_max_prebuilt(void);
uint8_t conflux_params_get_max_unlinked_leg_retry(void);
uint8_t conflux_params_get_num_legs_set(void);
uint8_t conflux_params_get_drain_pct(void);
uint8_t conflux_params_get_send_pct(void);

void conflux_params_new_consensus(const networkstatus_t *ns);

#ifdef TOR_UNIT_TESTS
extern uint32_t max_unlinked_leg_retry;
#endif

#endif /* TOR_CONFLUX_PARAMS_H */