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/test/testing_common.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/test/testing_common.c')
-rw-r--r-- | src/test/testing_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/testing_common.c b/src/test/testing_common.c index 43cf0aa508..07fd9e0afd 100644 --- a/src/test/testing_common.c +++ b/src/test/testing_common.c @@ -21,6 +21,7 @@ const char tor_git_revision[] = ""; #include "rephist.h" #include "backtrace.h" #include "test.h" +#include "channelpadding.h" #include <stdio.h> #ifdef HAVE_FCNTL_H @@ -309,6 +310,8 @@ main(int c, const char **v) init_pregenerated_keys(); + channelpadding_new_consensus_params(NULL); + predicted_ports_init(); atexit(remove_directory); |