Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 400 Lines • ▼ Show 20 Lines | strUsage += HelpMessageOpt( | ||||
"-maxreorgdepth=<n>", | "-maxreorgdepth=<n>", | ||||
strprintf("Configure at what depth blocks are considered final " | strprintf("Configure at what depth blocks are considered final " | ||||
"(default: %d). Use -1 to disable.", | "(default: %d). Use -1 to disable.", | ||||
DEFAULT_MAX_REORG_DEPTH)); | DEFAULT_MAX_REORG_DEPTH)); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-loadblock=<file>", | "-loadblock=<file>", | ||||
_("Imports blocks from external blk000??.dat file on startup")); | _("Imports blocks from external blk000??.dat file on startup")); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-debuglogfile=<file>", | |||||
strprintf( | |||||
_("Specify location of debug log file: this can be an absolute " | |||||
"path or a path relative to the data directory (default: %s)"), | |||||
DEFAULT_DEBUGLOGFILE)); | |||||
strUsage += HelpMessageOpt( | |||||
"-maxorphantx=<n>", strprintf(_("Keep at most <n> unconnectable " | "-maxorphantx=<n>", strprintf(_("Keep at most <n> unconnectable " | ||||
"transactions in memory (default: %u)"), | "transactions in memory (default: %u)"), | ||||
DEFAULT_MAX_ORPHAN_TRANSACTIONS)); | DEFAULT_MAX_ORPHAN_TRANSACTIONS)); | ||||
strUsage += HelpMessageOpt("-maxmempool=<n>", | strUsage += HelpMessageOpt("-maxmempool=<n>", | ||||
strprintf(_("Keep the transaction memory pool " | strprintf(_("Keep the transaction memory pool " | ||||
"below <n> megabytes (default: %u)"), | "below <n> megabytes (default: %u)"), | ||||
DEFAULT_MAX_MEMPOOL_SIZE)); | DEFAULT_MAX_MEMPOOL_SIZE)); | ||||
strUsage += | strUsage += | ||||
▲ Show 20 Lines • Show All 1,365 Lines • ▼ Show 20 Lines | #endif | ||||
bool default_shrinkdebugfile = logger.DefaultShrinkDebugFile(); | bool default_shrinkdebugfile = logger.DefaultShrinkDebugFile(); | ||||
if (gArgs.GetBoolArg("-shrinkdebugfile", default_shrinkdebugfile)) { | if (gArgs.GetBoolArg("-shrinkdebugfile", default_shrinkdebugfile)) { | ||||
// Do this first since it both loads a bunch of debug.log into memory, | // Do this first since it both loads a bunch of debug.log into memory, | ||||
// and because this needs to happen before any other debug.log printing. | // and because this needs to happen before any other debug.log printing. | ||||
logger.ShrinkDebugFile(); | logger.ShrinkDebugFile(); | ||||
} | } | ||||
if (logger.m_print_to_file) { | if (logger.m_print_to_file) { | ||||
logger.OpenDebugLog(); | if (!logger.OpenDebugLog()) { | ||||
return InitError(strprintf("Could not open debug log file %s", | |||||
logger.GetDebugLogPath().string())); | |||||
} | |||||
} | } | ||||
if (!logger.m_log_timestamps) { | if (!logger.m_log_timestamps) { | ||||
LogPrintf("Startup time: %s\n", | LogPrintf("Startup time: %s\n", | ||||
DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime())); | DateTimeStrFormat("%Y-%m-%d %H:%M:%S", GetTime())); | ||||
} | } | ||||
LogPrintf("Default data directory %s\n", GetDefaultDataDir().string()); | LogPrintf("Default data directory %s\n", GetDefaultDataDir().string()); | ||||
LogPrintf("Using data directory %s\n", GetDataDir().string()); | LogPrintf("Using data directory %s\n", GetDataDir().string()); | ||||
▲ Show 20 Lines • Show All 595 Lines • Show Last 20 Lines |