Remove main.h from db.cpp
[novacoin.git] / src / bitcoinrpc.cpp
index 2f38597..bb8ea6d 100644 (file)
@@ -206,14 +206,12 @@ Value help(const Array& params, bool fHelp)
 
 Value stop(const Array& params, bool fHelp)
 {
+// Accept the deprecated and ignored 'detach´ boolean argument
     if (fHelp || params.size() > 1)
         throw std::runtime_error(
-            "stop <detach>\n"
-            "<detach> is true or false to detach the database or not for this stop only\n"
-            "Stop NovaCoin server (and possibly override the detachdb config value).");
+            "stop\n"
+            "Stop Novacoin server.");
     // Shutdown will take long enough that the response should get back
-    if (!params.empty())
-        bitdb.SetDetach(params[0].get_bool());
     StartShutdown();
     return "NovaCoin server stopping";
 }