aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-11-04 14:36:49 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2013-11-04 14:36:49 +0100
commite30bd78f8133fe55ff0bf9e0d6a47a58357d9056 (patch)
tree5ce93d6b2752fecb2267b967b8b34278ca17134b /src/init.cpp
parent97f844dd95c54b0fe2f2a1bb006c74ff544ff125 (diff)
No more fHaveGUI
No more specific handling of GUI in bitcoin core. Replace the last usage of fHaveGUI with a fForceServer parameter on AppInit2.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/init.cpp b/src/init.cpp
index a803598f32..1ae1b127c4 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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);