MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / StopRPC

Function StopRPC

src/rpc/server.cpp:290–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290void StopRPC()
291{
292 static std::once_flag g_rpc_stop_flag;
293 // This function could be called twice if the GUI has been started with -server=1.
294 assert(!g_rpc_running);
295 std::call_once(g_rpc_stop_flag, [&]() {
296 LogDebug(BCLog::RPC, "Stopping RPC\n");
297 DeleteAuthCookie();
298 LogDebug(BCLog::RPC, "RPC stopped.\n");
299 });
300}
301
302bool IsRPCRunning()
303{

Callers 1

ShutdownFunction · 0.85

Calls 1

DeleteAuthCookieFunction · 0.85

Tested by

no test coverage detected