https://github.com/bitcoin/bitcoin/issues/15555#issuecomment-479346264
{
    
    
    
    
    if (jsonRequest.fHelp || jsonRequest.params.size() > 1)
        throw std::runtime_error(
            RPCHelpMan{"stop",
                "\nStop Bitcoin server.",
                {},
                RPCResults{},
                RPCExamples{""},
            }.ToString());
    
    
    StartShutdown();
    if (jsonRequest.params[0].isNum()) {
        MilliSleep(jsonRequest.params[0].get_int());
    }
    return "Bitcoin server stopping";
}
static UniValue uptime(const JSONRPCRequest& jsonRequest)