MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / ThreadPostNodeInfo

Function ThreadPostNodeInfo

src/net.cpp:382–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382void ThreadPostNodeInfo() {
383 int64_t start = GetTime();
384
385 int64_t interval_minutes = SysCfg().GetArg("-nodeinfopostinterval", 60L); //default is one hour
386 while (true) {
387 boost::this_thread::interruption_point();
388
389 while (GetTime() - start < interval_minutes * 60) {
390 boost::this_thread::interruption_point();
391 MilliSleep(1000); //sleep for 1 sec to check again.
392 }
393 start = GetTime();
394 PostNodeInfo();
395 }
396}
397
398void AddressCurrentlyConnected(const CService& addr) { addrman.Connected(addr); }
399

Callers

nothing calls this directly

Calls 4

GetTimeFunction · 0.85
MilliSleepFunction · 0.85
PostNodeInfoFunction · 0.85
GetArgMethod · 0.80

Tested by

no test coverage detected