Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 487 Lines • ▼ Show 20 Lines | #endif | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-connect=<ip>", _("Connect only to the specified node(s); -connect=0 " | "-connect=<ip>", _("Connect only to the specified node(s); -connect=0 " | ||||
"disables automatic connections (the rules for this " | "disables automatic connections (the rules for this " | ||||
"peer are the same as for -addnode)")); | "peer are the same as for -addnode)")); | ||||
strUsage += HelpMessageOpt("-discover", | strUsage += HelpMessageOpt("-discover", | ||||
_("Discover own IP addresses (default: 1 when " | _("Discover own IP addresses (default: 1 when " | ||||
"listening and no -externalip or -proxy)")); | "listening and no -externalip or -proxy)")); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-dns", | "-dns", _("Allow DNS lookups for -addnode, -seednode and -connect") + | ||||
_("Allow DNS lookups for -addnode, -seednode and -connect") + " " + | " " + strprintf(_("(default: %d)"), DEFAULT_NAME_LOOKUP)); | ||||
strprintf(_("(default: %d)"), DEFAULT_NAME_LOOKUP)); | |||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-dnsseed", _("Query for peer addresses via DNS lookup, if low on " | "-dnsseed", _("Query for peer addresses via DNS lookup, if low on " | ||||
"addresses (default: 1 unless -connect/-noconnect)")); | "addresses (default: 1 unless -connect/-noconnect)")); | ||||
strUsage += HelpMessageOpt("-externalip=<ip>", | strUsage += HelpMessageOpt("-externalip=<ip>", | ||||
_("Specify your own public address")); | _("Specify your own public address")); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-forcednsseed", | "-forcednsseed", | ||||
strprintf( | strprintf( | ||||
▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | strUsage += | ||||
HelpMessageOpt("-whitebind=<addr>", | HelpMessageOpt("-whitebind=<addr>", | ||||
_("Bind to given address and whitelist peers connecting " | _("Bind to given address and whitelist peers connecting " | ||||
"to it. Use [host]:port notation for IPv6")); | "to it. Use [host]:port notation for IPv6")); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-whitelist=<IP address or network>", | "-whitelist=<IP address or network>", | ||||
_("Whitelist peers connecting from the given IP address (e.g. 1.2.3.4) " | _("Whitelist peers connecting from the given IP address (e.g. 1.2.3.4) " | ||||
"or CIDR notated network (e.g. 1.2.3.0/24). Can be specified " | "or CIDR notated network (e.g. 1.2.3.0/24). Can be specified " | ||||
"multiple times.") + | "multiple times.") + | ||||
" " + _("Whitelisted peers cannot be DoS banned and their " | " " + | ||||
"transactions are always relayed, even if they are already " | _("Whitelisted peers cannot be DoS banned and their transactions " | ||||
"in the mempool, useful e.g. for a gateway")); | "are always relayed, even if they are already in the mempool, " | ||||
"useful e.g. for a gateway")); | |||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-whitelistrelay", | "-whitelistrelay", | ||||
strprintf(_("Accept relayed transactions received from whitelisted " | strprintf(_("Accept relayed transactions received from whitelisted " | ||||
"peers even when not relaying transactions (default: %d)"), | "peers even when not relaying transactions (default: %d)"), | ||||
DEFAULT_WHITELISTRELAY)); | DEFAULT_WHITELISTRELAY)); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-whitelistforcerelay", | "-whitelistforcerelay", | ||||
strprintf(_("Force relay of transactions from whitelisted peers even " | strprintf(_("Force relay of transactions from whitelisted peers even " | ||||
▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | if (showDebug) { | ||||
"(default: %u).", | "(default: %u).", | ||||
DEFAULT_DESCENDANT_SIZE_LIMIT)); | DEFAULT_DESCENDANT_SIZE_LIMIT)); | ||||
} | } | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-debug=<category>", | "-debug=<category>", | ||||
strprintf(_("Output debugging information (default: %u, supplying " | strprintf(_("Output debugging information (default: %u, supplying " | ||||
"<category> is optional)"), | "<category> is optional)"), | ||||
0) + | 0) + | ||||
". " + _("If <category> is not supplied or if <category> = 1, " | ". " + | ||||
"output all debugging information.") + | _("If <category> is not supplied or if <category> = 1, output all " | ||||
"debugging information.") + | |||||
_("<category> can be:") + " " + ListLogCategories() + "."); | _("<category> can be:") + " " + ListLogCategories() + "."); | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
"-debugexclude=<category>", | "-debugexclude=<category>", | ||||
strprintf(_("Exclude debugging information for a category. Can be used " | strprintf(_("Exclude debugging information for a category. Can be used " | ||||
"in conjunction with -debug=1 to output debug logs for all " | "in conjunction with -debug=1 to output debug logs for all " | ||||
"categories except one or more specified categories."))); | "categories except one or more specified categories."))); | ||||
if (showDebug) { | if (showDebug) { | ||||
strUsage += HelpMessageOpt( | strUsage += HelpMessageOpt( | ||||
▲ Show 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | std::string LicenseInfo() { | ||||
return CopyrightHolders( | return CopyrightHolders( | ||||
strprintf(_("Copyright (C) %i-%i"), 2009, COPYRIGHT_YEAR) + | strprintf(_("Copyright (C) %i-%i"), 2009, COPYRIGHT_YEAR) + | ||||
" ") + | " ") + | ||||
"\n" + "\n" + | "\n" + "\n" + | ||||
strprintf(_("Please contribute if you find %s useful. " | strprintf(_("Please contribute if you find %s useful. " | ||||
"Visit %s for further information about the software."), | "Visit %s for further information about the software."), | ||||
PACKAGE_NAME, URL_WEBSITE) + | PACKAGE_NAME, URL_WEBSITE) + | ||||
"\n" + strprintf(_("The source code is available from %s."), | "\n" + | ||||
strprintf(_("The source code is available from %s."), | |||||
URL_SOURCE_CODE) + | URL_SOURCE_CODE) + | ||||
"\n" + "\n" + _("This is experimental software.") + "\n" + | "\n" + "\n" + _("This is experimental software.") + "\n" + | ||||
strprintf(_("Distributed under the MIT software license, see the " | strprintf(_("Distributed under the MIT software license, see the " | ||||
"accompanying file %s or %s"), | "accompanying file %s or %s"), | ||||
"COPYING", "<https://opensource.org/licenses/MIT>") + | "COPYING", "<https://opensource.org/licenses/MIT>") + | ||||
"\n" + "\n" + | "\n" + "\n" + | ||||
strprintf(_("This product includes software developed by the " | strprintf(_("This product includes software developed by the " | ||||
"OpenSSL Project for use in the OpenSSL Toolkit %s and " | "OpenSSL Project for use in the OpenSSL Toolkit %s and " | ||||
"cryptographic software written by Eric Young and UPnP " | "cryptographic software written by Eric Young and UPnP " | ||||
▲ Show 20 Lines • Show All 1,186 Lines • ▼ Show 20 Lines | while (!fLoaded && !fRequestShutdown) { | ||||
"blocks", | "blocks", | ||||
MIN_BLOCKS_TO_KEEP); | MIN_BLOCKS_TO_KEEP); | ||||
} | } | ||||
{ | { | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
CBlockIndex *tip = chainActive.Tip(); | CBlockIndex *tip = chainActive.Tip(); | ||||
RPCNotifyBlockChange(true, tip); | RPCNotifyBlockChange(true, tip); | ||||
if (tip && | if (tip && tip->nTime > GetAdjustedTime() + | ||||
tip->nTime > | MAX_FUTURE_BLOCK_TIME) { | ||||
GetAdjustedTime() + MAX_FUTURE_BLOCK_TIME) { | |||||
strLoadError = | strLoadError = | ||||
_("The block database contains a block which " | _("The block database contains a block which " | ||||
"appears to be from the future. This may be " | "appears to be from the future. This may be " | ||||
"due to your computer's date and time being " | "due to your computer's date and time being " | ||||
"set incorrectly. Only rebuild the block " | "set incorrectly. Only rebuild the block " | ||||
"database if you are sure that your " | "database if you are sure that your " | ||||
"computer's date and time are correct"); | "computer's date and time are correct"); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines |