66ad75472f [Doc] Add documentation for the new whitelist permissions (nicolas.dorier)
Pull request description:
Documenting the new feature https://github.com/bitcoin/bitcoin/pull/16248 . Ping Sjors .
ACKs for top commit:
Sjors:
Indeed, re-ACK 66ad75472
Tree-SHA512: e6860bb6fae921287da7920a8db534e6a1a23871dd78dd6da030f00adf23e204cd23b194d67361bf34d4ef5a7815fc3fd7c81a3f2f35e4cfbe6ee2f2e6daec25
gArgs.AddArg("-whitebind=<addr>","Bind to given address and whitelist peers connecting to it. Use [host]:port notation for IPv6",ArgsManager::ALLOW_ANY,OptionsCategory::CONNECTION);
gArgs.AddArg("-whitelist=<IP address or network>","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 multiple times."
" Whitelisted peers cannot be DoS banned",ArgsManager::ALLOW_ANY,OptionsCategory::CONNECTION);
gArgs.AddArg("-whitebind=<[permissions@]addr>","Bind to given address and whitelist peers connecting to it. "
"Use [host]:port notation for IPv6. Allowed permissions are bloomfilter (allow requesting BIP37 filtered blocks and transactions), "
"noban (do not ban for misbehavior), "
"forcerelay (relay even non-standard transactions), "
"Specify multiple permissions separated by commas (default: noban,mempool,relay). Can be specified multiple times.",ArgsManager::ALLOW_ANY,OptionsCategory::CONNECTION);
gArgs.AddArg("-whitelist=<[permissions@]IP address or network>","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). Uses same permissions as "
"-whitebind. Can be specified multiple times.",ArgsManager::ALLOW_ANY,OptionsCategory::CONNECTION);
g_wallet_init_interface.AddWalletOptions();
@ -510,8 +518,8 @@ void SetupServerArgs()
gArgs.AddArg("-datacarriersize",strprintf("Maximum size of data in data carrier transactions we relay and mine (default: %u)",MAX_OP_RETURN_RELAY),ArgsManager::ALLOW_ANY,OptionsCategory::NODE_RELAY);
gArgs.AddArg("-minrelaytxfee=<amt>",strprintf("Fees (in %s/kB) smaller than this are considered zero fee for relaying, mining and transaction creation (default: %s)",
gArgs.AddArg("-whitelistforcerelay",strprintf("Force relay of transactions from whitelisted inbound peers even if the transactions were already in the mempool or violate local relay policy (default: %d)",DEFAULT_WHITELISTFORCERELAY),ArgsManager::ALLOW_ANY,OptionsCategory::NODE_RELAY);
gArgs.AddArg("-whitelistrelay",strprintf("Accept relayed transactions received from whitelisted inbound peers even when not relaying transactions (default: %d)",DEFAULT_WHITELISTRELAY),ArgsManager::ALLOW_ANY,OptionsCategory::NODE_RELAY);
gArgs.AddArg("-whitelistforcerelay",strprintf("Add 'forcerelay' permission to whitelisted inbound peers with default permissions. This will relay transactions even if the transactions were already in the mempool or violate local relay policy. (default: %d)",DEFAULT_WHITELISTFORCERELAY),ArgsManager::ALLOW_ANY,OptionsCategory::NODE_RELAY);
gArgs.AddArg("-whitelistrelay",strprintf("Add 'relay' permission to whitelisted inbound peers with default permissions. The will accept relayed transactions even when not relaying transactions (default: %d)",DEFAULT_WHITELISTRELAY),ArgsManager::ALLOW_ANY,OptionsCategory::NODE_RELAY);
gArgs.AddArg("-blockmaxweight=<n>",strprintf("Set maximum BIP141 block weight (default: %d)",DEFAULT_BLOCK_MAX_WEIGHT),ArgsManager::ALLOW_ANY,OptionsCategory::BLOCK_CREATION);