| 380 | } |
| 381 | |
| 382 | void 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 | |
| 398 | void AddressCurrentlyConnected(const CService& addr) { addrman.Connected(addr); } |
| 399 |
nothing calls this directly
no test coverage detected