MCPcopy Create free account
hub / github.com/ElementsProject/elements / StopHTTPRPC

Function StopHTTPRPC

src/httprpc.cpp:315–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void StopHTTPRPC()
316{
317 LogPrint(BCLog::RPC, "Stopping HTTP RPC server\n");
318 UnregisterHTTPHandler("/", true);
319 if (g_wallet_init_interface.HasWalletSupport()) {
320 UnregisterHTTPHandler("/wallet/", false);
321 }
322 if (httpRPCTimerInterface) {
323 RPCUnsetTimerInterface(httpRPCTimerInterface.get());
324 httpRPCTimerInterface.reset();
325 }
326}

Callers 1

ShutdownFunction · 0.85

Calls 5

UnregisterHTTPHandlerFunction · 0.85
RPCUnsetTimerInterfaceFunction · 0.85
HasWalletSupportMethod · 0.45
getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected