mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Remove -detachdb and stop's detach argument.
As the only BDB database left is the wallet, and it is always detached. Also remove IsChainFile() predicate and related chainfile-specific logic.
This commit is contained in:
@@ -179,14 +179,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 runtime_error(
|
||||
"stop <detach>\n"
|
||||
"<detach> is true or false to detach the database or not for this stop only\n"
|
||||
"Stop Bitcoin server (and possibly override the detachdb config value).");
|
||||
"stop\n"
|
||||
"Stop Bitcoin server.");
|
||||
// Shutdown will take long enough that the response should get back
|
||||
if (params.size() > 0)
|
||||
bitdb.SetDetach(params[0].get_bool());
|
||||
StartShutdown();
|
||||
return "Bitcoin server stopping";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user