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

Function StopNode

src/net.cpp:1812–1827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1810}
1811
1812bool StopNode()
1813{
1814 LogPrintf("StopNode()\n");
1815 MapPort(false);
1816 if (semOutbound)
1817 for (int i=0; i<(MAX_OUTBOUND_CONNECTIONS + MAX_FEELER_CONNECTIONS); i++)
1818 semOutbound->post();
1819
1820 if (fAddressesInitialized)
1821 {
1822 DumpAddresses();
1823 fAddressesInitialized = false;
1824 }
1825
1826 return true;
1827}
1828
1829class CNetCleanup
1830{

Callers 1

ShutdownFunction · 0.85

Calls 3

MapPortFunction · 0.85
DumpAddressesFunction · 0.85
postMethod · 0.80

Tested by

no test coverage detected