mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
No more fHaveGUI
No more specific handling of GUI in bitcoin core. Replace the last usage of fHaveGUI with a fForceServer parameter on AppInit2.
This commit is contained in:
parent
97f844dd95
commit
e30bd78f81
5 changed files with 5 additions and 12 deletions
|
|
@ -363,7 +363,7 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
|
|||
/** Initialize bitcoin.
|
||||
* @pre Parameters should be parsed and config file should be read.
|
||||
*/
|
||||
bool AppInit2(boost::thread_group& threadGroup)
|
||||
bool AppInit2(boost::thread_group& threadGroup, bool fForceServer)
|
||||
{
|
||||
// ********************************************************* Step 1: setup
|
||||
#ifdef _MSC_VER
|
||||
|
|
@ -490,14 +490,11 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||
else if (nScriptCheckThreads > MAX_SCRIPTCHECK_THREADS)
|
||||
nScriptCheckThreads = MAX_SCRIPTCHECK_THREADS;
|
||||
|
||||
if (fDaemon)
|
||||
if (fDaemon || fForceServer)
|
||||
fServer = true;
|
||||
else
|
||||
fServer = GetBoolArg("-server", false);
|
||||
|
||||
/* force fServer when running without GUI */
|
||||
if (!fHaveGUI)
|
||||
fServer = true;
|
||||
fPrintToConsole = GetBoolArg("-printtoconsole", false);
|
||||
fPrintToDebugger = GetBoolArg("-printtodebugger", false);
|
||||
fLogTimestamps = GetBoolArg("-logtimestamps", false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue