@ -242,10 +242,7 @@ std::string HelpMessage(HelpMessageMode hmm)
strUsage + = " -printtoconsole " + _ ( " Send trace/debug info to console instead of debug.log file " ) + " \n " ;
strUsage + = " -printtoconsole " + _ ( " Send trace/debug info to console instead of debug.log file " ) + " \n " ;
strUsage + = " -regtest " + _ ( " Enter regression test mode, which uses a special chain in which blocks can be solved instantly. " ) + " \n " ;
strUsage + = " -regtest " + _ ( " Enter regression test mode, which uses a special chain in which blocks can be solved instantly. " ) + " \n " ;
strUsage + = " " + _ ( " This is intended for regression testing tools and app development. " ) + " \n " ;
strUsage + = " " + _ ( " This is intended for regression testing tools and app development. " ) + " \n " ;
if ( hmm = = HMM_BITCOIN_QT )
{
strUsage + = " -server " + _ ( " Accept command line and JSON-RPC commands " ) + " \n " ;
strUsage + = " -server " + _ ( " Accept command line and JSON-RPC commands " ) + " \n " ;
}
if ( hmm = = HMM_BITCOIND )
if ( hmm = = HMM_BITCOIND )
{
{
@ -356,7 +353,7 @@ void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
/** Initialize bitcoin.
/** Initialize bitcoin.
* @ pre Parameters should be parsed and config file should be read .
* @ pre Parameters should be parsed and config file should be read .
*/
*/
bool AppInit2 ( boost : : thread_group & threadGroup , bool fForceServer )
bool AppInit2 ( boost : : thread_group & threadGroup )
{
{
// ********************************************************* Step 1: setup
// ********************************************************* Step 1: setup
# ifdef _MSC_VER
# ifdef _MSC_VER
@ -483,11 +480,7 @@ bool AppInit2(boost::thread_group& threadGroup, bool fForceServer)
else if ( nScriptCheckThreads > MAX_SCRIPTCHECK_THREADS )
else if ( nScriptCheckThreads > MAX_SCRIPTCHECK_THREADS )
nScriptCheckThreads = MAX_SCRIPTCHECK_THREADS ;
nScriptCheckThreads = MAX_SCRIPTCHECK_THREADS ;
if ( fDaemon | | fForceServer )
fServer = true ;
else
fServer = GetBoolArg ( " -server " , false ) ;
fServer = GetBoolArg ( " -server " , false ) ;
fPrintToConsole = GetBoolArg ( " -printtoconsole " , false ) ;
fPrintToConsole = GetBoolArg ( " -printtoconsole " , false ) ;
fLogTimestamps = GetBoolArg ( " -logtimestamps " , true ) ;
fLogTimestamps = GetBoolArg ( " -logtimestamps " , true ) ;
# ifdef ENABLE_WALLET
# ifdef ENABLE_WALLET
@ -569,9 +562,6 @@ bool AppInit2(boost::thread_group& threadGroup, bool fForceServer)
LogPrintf ( " Using at most %i connections (%i file descriptors available) \n " , nMaxConnections , nFD ) ;
LogPrintf ( " Using at most %i connections (%i file descriptors available) \n " , nMaxConnections , nFD ) ;
std : : ostringstream strErrors ;
std : : ostringstream strErrors ;
if ( fDaemon )
fprintf ( stdout , " Bitcoin server starting \n " ) ;
if ( nScriptCheckThreads ) {
if ( nScriptCheckThreads ) {
LogPrintf ( " Using %u threads for script verification \n " , nScriptCheckThreads ) ;
LogPrintf ( " Using %u threads for script verification \n " , nScriptCheckThreads ) ;
for ( int i = 0 ; i < nScriptCheckThreads - 1 ; i + + )
for ( int i = 0 ; i < nScriptCheckThreads - 1 ; i + + )