Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 777 Lines • ▼ Show 20 Lines | argsman.AddArg( | ||||
strprintf("Use UPnP to map the listening port (default: %u)", 0), | strprintf("Use UPnP to map the listening port (default: %u)", 0), | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION); | ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION); | ||||
#endif | #endif | ||||
#else | #else | ||||
hidden_args.emplace_back("-upnp"); | hidden_args.emplace_back("-upnp"); | ||||
#endif | #endif | ||||
argsman.AddArg( | argsman.AddArg( | ||||
"-whitebind=<[permissions@]addr>", | "-whitebind=<[permissions@]addr>", | ||||
"Bind to given address and whitelist peers connecting to it." | "Bind to the given address and add permission flags to the peers " | ||||
"connecting to it." | |||||
"Use [host]:port notation for IPv6. Allowed permissions: " + | "Use [host]:port notation for IPv6. Allowed permissions: " + | ||||
Join(NET_PERMISSIONS_DOC, ", ") + | Join(NET_PERMISSIONS_DOC, ", ") + | ||||
". " | ". " | ||||
"Specify multiple permissions separated by commas (default: " | "Specify multiple permissions separated by commas (default: " | ||||
"noban,mempool,relay). Can be specified multiple times.", | "download,noban,mempool,relay). Can be specified multiple times.", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION); | ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION); | ||||
argsman.AddArg("-whitelist=<[permissions@]IP address or network>", | argsman.AddArg("-whitelist=<[permissions@]IP address or network>", | ||||
"Whitelist peers connecting from the given IP address " | "Add permission flags to the peers connecting from the " | ||||
"given IP address " | |||||
"(e.g. 1.2.3.4) or CIDR notated network(e.g. 1.2.3.0/24). " | "(e.g. 1.2.3.4) or CIDR notated network(e.g. 1.2.3.0/24). " | ||||
majcosta: pls bring the formatting changes over or it's going to be a totally unrelated merge conflict… | |||||
"Uses same permissions as -whitebind. Can be specified " | "Uses the same permissions as -whitebind. Can be specified " | ||||
"multiple times.", | "multiple times.", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION); | ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION); | ||||
argsman.AddArg( | argsman.AddArg( | ||||
"-maxuploadtarget=<n>", | "-maxuploadtarget=<n>", | ||||
strprintf("Tries to keep outbound traffic under the given target (in " | strprintf("Tries to keep outbound traffic under the given target (in " | ||||
"MiB per 24h). Limit does not apply to peers with 'noban' " | "MiB per 24h). Limit does not apply to peers with 'download' " | ||||
"permission. 0 = no limit (default: %d)", | "permission. 0 = no limit (default: %d)", | ||||
DEFAULT_MAX_UPLOAD_TARGET), | DEFAULT_MAX_UPLOAD_TARGET), | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION); | ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION); | ||||
g_wallet_init_interface.AddWalletOptions(argsman); | g_wallet_init_interface.AddWalletOptions(argsman); | ||||
#if ENABLE_ZMQ | #if ENABLE_ZMQ | ||||
argsman.AddArg("-zmqpubhashblock=<address>", | argsman.AddArg("-zmqpubhashblock=<address>", | ||||
▲ Show 20 Lines • Show All 2,152 Lines • Show Last 20 Lines |
pls bring the formatting changes over or it's going to be a totally unrelated merge conflict down the road