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

Function StopNode

src/net.cpp:1427–1437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1425}
1426
1427bool StopNode() {
1428 LogPrint(BCLog::INFO, "StopNode()\n");
1429 MapPort(false);
1430 if (semOutbound)
1431 for (int32_t i = 0; i < MAX_OUTBOUND_CONNECTIONS; i++)
1432 semOutbound->post();
1433 MilliSleep(50);
1434 DumpAddresses();
1435
1436 return true;
1437}
1438
1439class CNetCleanup {
1440public:

Callers 1

ShutdownFunction · 0.85

Calls 4

MapPortFunction · 0.85
MilliSleepFunction · 0.85
DumpAddressesFunction · 0.85
postMethod · 0.80

Tested by

no test coverage detected