| 237 | |
| 238 | |
| 239 | UniValue 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 |
nothing calls this directly
no test coverage detected