MCPcopy Create free account
hub / github.com/LUX-Core/lux / StopNode

Function StopNode

src/net.cpp:1966–1981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1964}
1965
1966bool StopNode() {
1967 LogPrintf("StopNode()\n");
1968 MapPort(false);
1969 if (semOutbound) {
1970 for (int i = 0; i < MAX_OUTBOUND_CONNECTIONS; i++) {
1971 semOutbound->post();
1972 }
1973 }
1974
1975 if (fAddressesInitialized) {
1976 DumpData();
1977 fAddressesInitialized = false;
1978 }
1979
1980 return true;
1981}
1982
1983void SetNetworkActive(bool active) {
1984 if (fDebug)

Callers 1

PrepareShutdownFunction · 0.85

Calls 3

MapPortFunction · 0.85
DumpDataFunction · 0.85
postMethod · 0.45

Tested by

no test coverage detected