|
|
|
@ -835,11 +835,21 @@ namespace llarp
|
|
|
|
|
next_rc_gossip = now_timepoint + RouterContact::STALE_AGE - random_delta;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// (client-only) periodically fetch updated RCs
|
|
|
|
|
if (now_timepoint - last_rc_fetch > RC_UPDATE_INTERVAL)
|
|
|
|
|
if (not is_snode)
|
|
|
|
|
{
|
|
|
|
|
node_db()->update_rcs();
|
|
|
|
|
last_rc_fetch = now_timepoint;
|
|
|
|
|
// (client-only) periodically fetch updated RCs
|
|
|
|
|
if (now_timepoint - last_rc_fetch > RC_UPDATE_INTERVAL)
|
|
|
|
|
{
|
|
|
|
|
node_db()->fetch_rcs();
|
|
|
|
|
last_rc_fetch = now_timepoint;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// (client-only) periodically fetch updated RouterID list
|
|
|
|
|
if (now_timepoint - last_routerid_fetch > ROUTERID_UPDATE_INTERVAL)
|
|
|
|
|
{
|
|
|
|
|
node_db()->fetch_router_ids();
|
|
|
|
|
last_routerid_fetch = now_timepoint;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// remove RCs for nodes that are no longer allowed by network policy
|
|
|
|
|