[tor-commits] [tor/master] Pass incoming consensus documents to the consdiffmgr code
nickm at torproject.org
nickm at torproject.org
Fri Apr 28 15:08:22 UTC 2017
commit ab73bda0604dccd899061f338122ed7f9faf8c4f
Author: Nick Mathewson <nickm at torproject.org>
Date: Wed Apr 26 08:44:01 2017 -0400
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 9d27e57..188e753 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) {
More information about the tor-commits
mailing list