mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 23:21:38 +01:00
Pass incoming consensus documents to the consdiffmgr code
This commit is contained in:
parent
16d6ab6640
commit
ab73bda060
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "connection.h"
|
#include "connection.h"
|
||||||
#include "connection_or.h"
|
#include "connection_or.h"
|
||||||
|
#include "consdiffmgr.h"
|
||||||
#include "control.h"
|
#include "control.h"
|
||||||
#include "directory.h"
|
#include "directory.h"
|
||||||
#include "dirserv.h"
|
#include "dirserv.h"
|
||||||
|
@ -1981,6 +1982,9 @@ networkstatus_set_current_consensus(const char *consensus,
|
||||||
flavor,
|
flavor,
|
||||||
&c->digests,
|
&c->digests,
|
||||||
c->valid_after);
|
c->valid_after);
|
||||||
|
if (server_mode(get_options())) {
|
||||||
|
consdiffmgr_add_consensus(consensus, c);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!from_cache) {
|
if (!from_cache) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue