aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-26 08:44:01 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-27 21:40:12 -0400
commitab73bda0604dccd899061f338122ed7f9faf8c4f (patch)
tree7a574ea5a5b6de6a1d4402c025101b06a31271b0
parent16d6ab6640b4404d47096cbf1d25e1b57b0b26bb (diff)
downloadtor-ab73bda0604dccd899061f338122ed7f9faf8c4f.tar.gz
tor-ab73bda0604dccd899061f338122ed7f9faf8c4f.zip
Pass incoming consensus documents to the consdiffmgr code
-rw-r--r--src/or/networkstatus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 9d27e576e6..188e7531f8 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -46,6 +46,7 @@
#include "config.h"
#include "connection.h"
#include "connection_or.h"
+#include "consdiffmgr.h"
#include "control.h"
#include "directory.h"
#include "dirserv.h"
@@ -1981,6 +1982,9 @@ networkstatus_set_current_consensus(const char *consensus,
flavor,
&c->digests,
c->valid_after);
+ if (server_mode(get_options())) {
+ consdiffmgr_add_consensus(consensus, c);
+ }
}
if (!from_cache) {