diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-28 13:29:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-10-01 18:14:26 -0400 |
commit | fe309e7ad633bee36e175e600f0b9a0ac18cf981 (patch) | |
tree | 5e4bc848a6c65ec4eb91f8994ab9980a5ec20fb0 /src/or/networkstatus.c | |
parent | 80b515b85fdfbcd645cb1920e398b3f2f6e85a31 (diff) | |
download | tor-fe309e7ad633bee36e175e600f0b9a0ac18cf981.tar.gz tor-fe309e7ad633bee36e175e600f0b9a0ac18cf981.zip |
Implement a basic node and nodelist type
The node_t type is meant to serve two key functions:
1) Abstracting difference between routerinfo_t and microdesc_t
so that clients can use microdesc_t instead of routerinfo_t.
2) Being a central place to hold mutable state about nodes
formerly held in routerstatus_t and routerinfo_t.
This patch implements a nodelist type that holds a node for every
router that we would consider using.
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index cba02f3709..c41bcab6ff 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -22,6 +22,7 @@ #include "main.h" #include "microdesc.h" #include "networkstatus.h" +#include "nodelist.h" #include "relay.h" #include "router.h" #include "routerlist.h" @@ -1833,6 +1834,8 @@ networkstatus_set_current_consensus(const char *consensus, /* XXXXNM Microdescs: needs a non-ns variant. */ update_consensus_networkstatus_fetch_time(now); + nodelist_set_consensus(current_consensus); + dirvote_recalculate_timing(options, now); routerstatus_list_update_named_server_map(); cell_ewma_set_scale_factor(options, current_consensus); |