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

Function stop

src/rpcserver.cpp:239–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237
238
239UniValue stop(const UniValue& params, bool fHelp)
240{
241 // Accept the deprecated and ignored 'detach' boolean argument
242 if (fHelp || params.size() > 1)
243 throw runtime_error(
244 "stop\n"
245 "\nStop Bitcoin server.");
246 // Shutdown will take long enough that the response should get back
247 StartShutdown();
248 return "Bitcoin server stopping";
249}
250
251/**
252 * Call Table

Callers

nothing calls this directly

Calls 2

StartShutdownFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected