summaryrefslogtreecommitdiff
path: root/src/test/testing_common.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2016-09-22 17:52:25 -0400
committerNick Mathewson <nickm@torproject.org>2017-05-08 13:49:23 -0400
commit687a85950afc25010c80cd14539728b3a7ae5675 (patch)
tree033a575f75d586272f1e332c2d3a3b0f7ec26da1 /src/test/testing_common.c
parentae4d8c9c745b396049c3064b7dc764bbd9a58058 (diff)
downloadtor-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.c3
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);