Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 533 Lines • ▼ Show 20 Lines | #endif | ||||
gArgs.AddArg("-dns", | gArgs.AddArg("-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), | ||||
false, OptionsCategory::CONNECTION); | false, OptionsCategory::CONNECTION); | ||||
gArgs.AddArg("-dnsseed", | gArgs.AddArg("-dnsseed", | ||||
_("Query for peer addresses via DNS lookup, if low on " | _("Query for peer addresses via DNS lookup, if low on " | ||||
"addresses (default: 1 unless -connect/-noconnect)"), | "addresses (default: 1 unless -connect/-noconnect)"), | ||||
false, OptionsCategory::CONNECTION); | false, OptionsCategory::CONNECTION); | ||||
gArgs.AddArg("-enablebip61", | |||||
strprintf(_("Send reject messages per BIP61 (default: %u)"), | |||||
DEFAULT_ENABLE_BIP61), | |||||
false, OptionsCategory::CONNECTION); | |||||
gArgs.AddArg("-externalip=<ip>", _("Specify your own public address"), | gArgs.AddArg("-externalip=<ip>", _("Specify your own public address"), | ||||
false, OptionsCategory::CONNECTION); | false, OptionsCategory::CONNECTION); | ||||
gArgs.AddArg( | gArgs.AddArg( | ||||
"-forcednsseed", | "-forcednsseed", | ||||
strprintf( | strprintf( | ||||
_("Always query for peer addresses via DNS lookup (default: %d)"), | _("Always query for peer addresses via DNS lookup (default: %d)"), | ||||
DEFAULT_FORCEDNSSEED), | DEFAULT_FORCEDNSSEED), | ||||
false, OptionsCategory::CONNECTION); | false, OptionsCategory::CONNECTION); | ||||
▲ Show 20 Lines • Show All 1,191 Lines • ▼ Show 20 Lines | if (gArgs.GetBoolArg("-peerbloomfilters", DEFAULT_PEERBLOOMFILTERS)) { | ||||
nLocalServices = ServiceFlags(nLocalServices | NODE_BLOOM); | nLocalServices = ServiceFlags(nLocalServices | NODE_BLOOM); | ||||
} | } | ||||
// Signal Bitcoin Cash support. | // Signal Bitcoin Cash support. | ||||
// TODO: remove some time after the hardfork when no longer needed | // TODO: remove some time after the hardfork when no longer needed | ||||
// to differentiate the network nodes. | // to differentiate the network nodes. | ||||
nLocalServices = ServiceFlags(nLocalServices | NODE_BITCOIN_CASH); | nLocalServices = ServiceFlags(nLocalServices | NODE_BITCOIN_CASH); | ||||
g_enable_bip61 = gArgs.GetBoolArg("-enablebip61", DEFAULT_ENABLE_BIP61); | |||||
nMaxTipAge = gArgs.GetArg("-maxtipage", DEFAULT_MAX_TIP_AGE); | nMaxTipAge = gArgs.GetArg("-maxtipage", DEFAULT_MAX_TIP_AGE); | ||||
return true; | return true; | ||||
} | } | ||||
static bool LockDataDirectory(bool probeOnly) { | static bool LockDataDirectory(bool probeOnly) { | ||||
// Make sure only a single Bitcoin process is using the data directory. | // Make sure only a single Bitcoin process is using the data directory. | ||||
fs::path datadir = GetDataDir(); | fs::path datadir = GetDataDir(); | ||||
▲ Show 20 Lines • Show All 704 Lines • Show Last 20 Lines |