|
@@ -2098,12 +2098,13 @@ networkstatus_set_current_consensus(const char *consensus,
|
|
|
}
|
|
|
|
|
|
if (we_want_to_fetch_flavor(options, flav)) {
|
|
|
- dirserv_set_cached_consensus_networkstatus(consensus,
|
|
|
- flavor,
|
|
|
- &c->digests,
|
|
|
- c->digest_sha3_as_signed,
|
|
|
- c->valid_after);
|
|
|
if (dir_server_mode(get_options())) {
|
|
|
+ dirserv_set_cached_consensus_networkstatus(consensus,
|
|
|
+ flavor,
|
|
|
+ &c->digests,
|
|
|
+ c->digest_sha3_as_signed,
|
|
|
+ c->valid_after);
|
|
|
+
|
|
|
consdiffmgr_add_consensus(consensus, c);
|
|
|
}
|
|
|
}
|