MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / StopHTTPRPC

Function StopHTTPRPC

src/httprpc.cpp:258–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void StopHTTPRPC()
259{
260 LogPrint(BCLog::RPC, "Stopping HTTP RPC server\n");
261 UnregisterHTTPHandler("/", true);
262#ifdef ENABLE_WALLET
263 UnregisterHTTPHandler("/wallet/", false);
264#endif
265 if (httpRPCTimerInterface) {
266 RPCUnsetTimerInterface(httpRPCTimerInterface.get());
267 httpRPCTimerInterface.reset();
268 }
269}

Callers 1

ShutdownFunction · 0.85

Calls 4

UnregisterHTTPHandlerFunction · 0.85
RPCUnsetTimerInterfaceFunction · 0.85
getMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected