MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / InitTorIPGroups

Function InitTorIPGroups

src/ipgroups.cpp:277–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277static void InitTorIPGroups(CScheduler *scheduler) {
278 // Load Tor Exits as a group. We use both static and dynamically loaded data to avoid incentivising someone
279 // to DoS the Tor website, and to give us a fighting chance of correctly labelling connections that come in
280 // a few seconds after startup (this can happen). Kick off a poll now and then do it (by default) once per day.
281 if (scheduler) {
282 scheduler->scheduleFromNow(&PollTorWebsite, 0);
283 scheduler->scheduleEvery(&PollTorWebsite, GetArg("-poll-tor-seconds", DEFAULT_IP_PRIO_URL_POLL_INTERVAL));
284 }
285 LoadTorIPsFromStaticData();
286}
287
288void InitIPGroups(CScheduler *scheduler) {
289 {

Callers 1

InitIPGroupsFunction · 0.85

Calls 4

GetArgFunction · 0.85
LoadTorIPsFromStaticDataFunction · 0.85
scheduleFromNowMethod · 0.80
scheduleEveryMethod · 0.80

Tested by

no test coverage detected