From 317353deb3c189dd74eca16827dc8dfde4e531d2 Mon Sep 17 00:00:00 2001 From: thephez Date: Thu, 11 Feb 2021 11:22:54 -0500 Subject: [PATCH] docs: cli option help additions (#3981) * docs: add help messages for missing devnet options * docs: add help for llmq recovery * docs: add help for regtest llmq * docs: add help for sporkkey * Apply suggestions from code review Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com> Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com> --- src/init.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/init.cpp b/src/init.cpp index 5a13768245..6b274401f4 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -598,6 +598,12 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-debugexclude=", strprintf(_("Exclude debugging information for a category. Can be used in conjunction with -debug=1 to output debug logs for all categories except one or more specified categories."))); strUsage += HelpMessageOpt("-disablegovernance", strprintf(_("Disable governance validation (0-1, default: %u)"), 0)); strUsage += HelpMessageOpt("-help-debug", _("Show all debugging options (usage: --help -help-debug)")); + strUsage += HelpMessageOpt("-highsubsidyblocks=", _("The number of blocks with a higher than normal subsidy to mine at the start of a devnet (default: 0)")); + strUsage += HelpMessageOpt("-highsubsidyfactor=", _("The factor to multiply the normal block subsidy by while in the highsubsidyblocks window of a devnet (default: 1)")); + strUsage += HelpMessageOpt("-llmqchainlocks=", _("Override the default LLMQ type used for ChainLocks on a devnet. Allows using ChainLocks with smaller LLMQs. (default: llmq50_60)")); + strUsage += HelpMessageOpt("-llmqdevnetparams=", _("Override the default LLMQ size for the LLMQ_DEVNET quorum (default: 10:6)")); + strUsage += HelpMessageOpt("-llmqinstantsend=", _("Override the default LLMQ type used for InstantSend on a devnet. Allows using InstantSend with smaller LLMQs. (default: llmq50_60)")); + strUsage += HelpMessageOpt("-llmqtestparams=", _("Override the default LLMQ size for the LLMQ_TEST quorum (default: 3:2)")); strUsage += HelpMessageOpt("-logips", strprintf(_("Include IP addresses in debug output (default: %u)"), DEFAULT_LOGIPS)); if (showDebug) { @@ -610,6 +616,7 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-logtimestamps", strprintf(_("Prepend debug output with timestamp (default: %u)"), DEFAULT_LOGTIMESTAMPS)); strUsage += HelpMessageOpt("-maxtxfee=", strprintf(_("Maximum total fees (in %s) to use in a single wallet transaction or raw transaction; setting this too low may abort large transactions (default: %s)"), CURRENCY_UNIT, FormatMoney(DEFAULT_TRANSACTION_MAXFEE))); + strUsage += HelpMessageOpt("-minimumdifficultyblocks=", _("The number of blocks that can be mined with the minimum difficulty at the start of a devnet (default: 0)")); strUsage += HelpMessageOpt("-minsporkkeys=", strprintf(_("Overrides minimum spork signers to change spork value. Only useful for regtest and devnet. Using this on mainnet or testnet will ban you."))); if (showDebug) { @@ -619,10 +626,13 @@ std::string HelpMessage(HelpMessageMode mode) strUsage += HelpMessageOpt("-printtodebuglog", strprintf(_("Send trace/debug info to debug.log file (default: %u)"), 1)); strUsage += HelpMessageOpt("-shrinkdebugfile", _("Shrink debug.log file on client startup (default: 1 when no -debug)")); strUsage += HelpMessageOpt("-sporkaddr=", strprintf(_("Override spork address. Only useful for regtest and devnet. Using this on mainnet or testnet will ban you."))); + strUsage += HelpMessageOpt("-sporkkey=", _("Set the private key to be used for signing spork messages.")); strUsage += HelpMessageOpt("-uacomment=", _("Append comment to the user agent string")); AppendParamsHelpMessages(strUsage, showDebug); strUsage += HelpMessageGroup(_("Masternode options:")); + strUsage += HelpMessageOpt("-llmq-data-recovery=", _("Enable automated quorum data recovery (default: 1)")); + strUsage += HelpMessageOpt("-llmq-qvvec-sync=", _("Defines from which LLMQ type the masternode should sync quorum verification vectors. Can be used multiple times with different LLMQ types.")); strUsage += HelpMessageOpt("-masternodeblsprivkey=", _("Set the masternode BLS private key and enable the client to act as a masternode")); strUsage += HelpMessageOpt("-platform-user=", _("Set the username for the \"platform user\", a restricted user intended to be used by Dash Platform, to the specified username."));