|
|
@ -755,6 +755,17 @@ void InitParameterInteraction() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void InitLogging() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
fPrintToConsole = GetBoolArg("-printtoconsole", false); |
|
|
|
|
|
|
|
fLogTimestamps = GetBoolArg("-logtimestamps", true); |
|
|
|
|
|
|
|
fLogTimeMicros = GetBoolArg("-logtimemicros", DEFAULT_LOGTIMEMICROS); |
|
|
|
|
|
|
|
fLogIPs = GetBoolArg("-logips", false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LogPrintf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); |
|
|
|
|
|
|
|
LogPrintf("Bitcoin version %s (%s)\n", FormatFullVersion(), CLIENT_DATE); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 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. |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -819,14 +830,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) |
|
|
|
// ********************************************************* Step 2: parameter interactions
|
|
|
|
// ********************************************************* Step 2: parameter interactions
|
|
|
|
const CChainParams& chainparams = Params(); |
|
|
|
const CChainParams& chainparams = Params(); |
|
|
|
|
|
|
|
|
|
|
|
// Set this early so that parameter interactions go to console
|
|
|
|
|
|
|
|
fPrintToConsole = GetBoolArg("-printtoconsole", false); |
|
|
|
|
|
|
|
fLogTimestamps = GetBoolArg("-logtimestamps", true); |
|
|
|
|
|
|
|
fLogTimeMicros = GetBoolArg("-logtimemicros", DEFAULT_LOGTIMEMICROS); |
|
|
|
|
|
|
|
fLogIPs = GetBoolArg("-logips", false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LogPrintf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); |
|
|
|
|
|
|
|
LogPrintf("Bitcoin version %s (%s)\n", FormatFullVersion(), CLIENT_DATE); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if using block pruning, then disable txindex
|
|
|
|
// if using block pruning, then disable txindex
|
|
|
|
if (GetArg("-prune", 0)) { |
|
|
|
if (GetArg("-prune", 0)) { |
|
|
|