diff options
Diffstat (limited to 'src/or/microdesc.c')
-rw-r--r-- | src/or/microdesc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c index 2752d15c8c..19970aa783 100644 --- a/src/or/microdesc.c +++ b/src/or/microdesc.c @@ -5,6 +5,7 @@ #include "config.h" #include "directory.h" #include "microdesc.h" +#include "nodelist.h" #include "routerparse.h" #include "networkstatus.h" #include "routerlist.h" @@ -249,6 +250,12 @@ microdescs_add_list_to_cache(microdesc_cache_t *cache, microdesc_cache_rebuild(cache); } + { + networkstatus_t *ns = networkstatus_get_latest_consensus(); + if (ns && ns->flavor == FLAV_MICRODESC) + SMARTLIST_FOREACH(added, microdesc_t *, md, nodelist_add_microdesc(md)); + } + return added; } |