Skip to content

Commit

Permalink
[avalanche] Document the staking rewards enable flag
Browse files Browse the repository at this point in the history
Summary: This used to be a hidden flag, make it available via the help.

Test Plan:
  bitcoind -help
Check the flag is properly documented.

Reviewers: #bitcoin_abc, bytesofman

Reviewed By: #bitcoin_abc, bytesofman

Subscribers: bytesofman

Differential Revision: https://reviews.bitcoinabc.org/D14626
  • Loading branch information
Fabcien committed Oct 11, 2023
1 parent 94c1e8f commit 21d92f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ void SetupServerArgs(NodeContext &node) {
std::vector<std::string> hidden_args = {
"-dbcrashratio", "-forcecompactdb", "-maxaddrtosend", "-parkdeepreorg",
"-automaticunparking", "-replayprotectionactivationtime",
"-enableminerfund", "-chronikallowpause", "-avalanchestakingrewards",
"-enableminerfund", "-chronikallowpause",
// GUI args. These will be overwritten by SetupUIArgs for the GUI
"-allowselfsignedrootcertificates", "-choosedatadir", "-lang=<lang>",
"-min", "-resetguisettings", "-rootcertificates=<file>", "-splash",
Expand Down Expand Up @@ -1273,6 +1273,14 @@ void SetupServerArgs(NodeContext &node) {
strprintf("Enable the avalanche feature (default: %u)",
AVALANCHE_DEFAULT_ENABLED),
ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE);
argsman.AddArg(
"-avalanchestakingrewards",
strprintf("Enable the avalanche staking rewards feature (default: %u, "
"testnet: %u, regtest: %u)",
defaultChainParams->GetConsensus().enableStakingRewards,
testnetChainParams->GetConsensus().enableStakingRewards,
regtestChainParams->GetConsensus().enableStakingRewards),
ArgsManager::ALLOW_BOOL, OptionsCategory::AVALANCHE);
argsman.AddArg("-avalancheconflictingproofcooldown",
strprintf("Mandatory cooldown before a proof conflicting "
"with an already registered one can be considered "
Expand Down
1 change: 0 additions & 1 deletion test/lint/check-doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"-h",
"-automaticunparking",
"-avalanchepreconsensus",
"-avalanchestakingrewards",
"-chronikallowpause",
"-dbcrashratio",
"-enableminerfund",
Expand Down

0 comments on commit 21d92f2

Please sign in to comment.