summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-01-29 11:05:13 -0500
committerNick Mathewson <nickm@torproject.org>2013-01-30 11:58:17 -0500
commit02c320916e025eca63d0ae23aa4f610095c7857c (patch)
treeedeec6ef2067d0db80c69c2ff28759ce9fadf9a8 /src/or/or.h
parent813a0f8c40d57390412ce9dc52ef503d80e1f474 (diff)
downloadtor-02c320916e025eca63d0ae23aa4f610095c7857c.tar.gz
tor-02c320916e025eca63d0ae23aa4f610095c7857c.zip
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.
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h3
1 files changed, 3 insertions, 0 deletions
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. */