From ab73bda0604dccd899061f338122ed7f9faf8c4f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 26 Apr 2017 08:44:01 -0400 Subject: Pass incoming consensus documents to the consdiffmgr code --- src/or/networkstatus.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3-54-g00ecf