Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,607 Lines • ▼ Show 20 Lines | bool AppInitParameterInteraction(Config &config) { | ||||
for (const auto §ion : gArgs.GetUnrecognizedSections()) { | for (const auto §ion : gArgs.GetUnrecognizedSections()) { | ||||
InitWarning(strprintf("%s:%i " + _("Section [%s] is not recognized."), | InitWarning(strprintf("%s:%i " + _("Section [%s] is not recognized."), | ||||
section.m_file, section.m_line, section.m_name)); | section.m_file, section.m_line, section.m_name)); | ||||
} | } | ||||
if (!fs::is_directory(GetBlocksDir())) { | if (!fs::is_directory(GetBlocksDir())) { | ||||
return InitError( | return InitError( | ||||
strprintf(_("Specified blocks directory \"%s\" does not exist."), | strprintf(_("Specified blocks directory \"%s\" does not exist."), | ||||
gArgs.GetArg("-blocksdir", "").c_str())); | gArgs.GetArg("-blocksdir", ""))); | ||||
} | } | ||||
// if using block pruning, then disallow txindex | // if using block pruning, then disallow txindex | ||||
if (gArgs.GetArg("-prune", 0)) { | if (gArgs.GetArg("-prune", 0)) { | ||||
if (gArgs.GetBoolArg("-txindex", DEFAULT_TXINDEX)) { | if (gArgs.GetBoolArg("-txindex", DEFAULT_TXINDEX)) { | ||||
return InitError(_("Prune mode is incompatible with -txindex.")); | return InitError(_("Prune mode is incompatible with -txindex.")); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,021 Lines • Show Last 20 Lines |