From 02c320916e025eca63d0ae23aa4f610095c7857c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 29 Jan 2013 11:05:13 -0500 Subject: Parameterize FRAC_USABLE_NEEDED for fraction of circuits Instead of hardcoding the minimum fraction of possible paths to 0.6, we take it from the user, and failing that from the consensus, and failing that we fall back to 0.6. --- src/or/or.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/or/or.h') diff --git a/src/or/or.h b/src/or/or.h index a6f3d3e88a..4c76adf98f 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3918,6 +3918,9 @@ typedef struct { /** Autobool: should we use the ntor handshake if we can? */ int UseNTorHandshake; + + /** Fraction: */ + double PathsNeededToBuildCircuits; } or_options_t; /** Persistent state for an onion router, as saved to disk. */ -- cgit v1.2.3-54-g00ecf