aboutsummaryrefslogtreecommitdiff
path: root/src/or/channelpadding.h
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/or/channelpadding.h
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/or/channelpadding.h')
-rw-r--r--src/or/channelpadding.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/channelpadding.h b/src/or/channelpadding.h
index 07af7a6b46..e08f7a2045 100644
--- a/src/or/channelpadding.h
+++ b/src/or/channelpadding.h
@@ -33,6 +33,7 @@ int channelpadding_send_enable_command(channel_t *chan, uint16_t low_timeout,
int channelpadding_get_circuits_available_timeout(void);
unsigned int channelpadding_get_channel_idle_timeout(const channel_t *, int);
+void channelpadding_new_consensus_params(networkstatus_t *ns);
#endif