diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2016-09-22 17:52:25 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-08 13:49:23 -0400 |
commit | 687a85950afc25010c80cd14539728b3a7ae5675 (patch) | |
tree | 033a575f75d586272f1e332c2d3a3b0f7ec26da1 /src/or/main.c | |
parent | ae4d8c9c745b396049c3064b7dc764bbd9a58058 (diff) | |
download | tor-687a85950afc25010c80cd14539728b3a7ae5675.tar.gz tor-687a85950afc25010c80cd14539728b3a7ae5675.zip |
Cache netflow-related consensus parameters.
Checking all of these parameter lists for every single connection every second
seems like it could be an expensive waste.
Updating globally cached versions when there is a new consensus will still
allow us to apply consensus parameter updates to all existing connections
immediately.
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index 5bc132a0e3..b729e0b378 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -3033,6 +3033,10 @@ tor_init(int argc, char *argv[]) /* The options are now initialised */ const or_options_t *options = get_options(); + /* Initialize channelpadding parameters to defaults until we get + * a consensus */ + channelpadding_new_consensus_params(NULL); + /* Initialize predicted ports list after loading options */ predicted_ports_init(); |