diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-11-29 12:44:14 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-11-29 12:47:13 +0100 |
commit | deec83fd2cc8af39c28c74161650fbff432502ce (patch) | |
tree | d53458e5f5c4e386d9fcaf664dac62d9a4a33d07 /src/init.cpp | |
parent | 16ca0bfd2848424de7deae307283d9eb9de8a978 (diff) |
init: Get rid of fServer flag
There is no need to store this flag globally, the variable is only used
inside the initialization process.
Thanks to Alex Morcos for the idea.
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp index b70e6e9158..fb51eb7633 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -931,8 +931,6 @@ bool AppInitParameterInteraction() else if (nScriptCheckThreads > MAX_SCRIPTCHECK_THREADS) nScriptCheckThreads = MAX_SCRIPTCHECK_THREADS; - fServer = GetBoolArg("-server", false); - // block pruning; get the amount of disk space (in MiB) to allot for block & undo files int64_t nSignedPruneTarget = GetArg("-prune", 0) * 1024 * 1024; if (nSignedPruneTarget < 0) { @@ -1121,7 +1119,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler) * that the server is there and will be ready later). Warmup mode will * be disabled when initialisation is finished. */ - if (fServer) + if (GetBoolArg("-server", false)) { uiInterface.InitMessage.connect(SetRPCWarmupStatus); if (!AppInitServers(threadGroup)) |