Skip to content

Commit

Permalink
allow staking=0 to disable minting
Browse files Browse the repository at this point in the history
  • Loading branch information
backpacker69 committed Mar 19, 2020
1 parent b46a203 commit 2d94739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/miner.cpp
Expand Up @@ -533,7 +533,7 @@ void PoSMiner(CWallet *pwallet)
std::string strMintDisabledMessage = _("Info: Minting disabled by 'nominting' option.");
std::string strMintBlockMessage = _("Info: Minting suspended due to block creation failure.");
std::string strMintEmpty = _("");
if (!gArgs.GetBoolArg("-minting", true))
if (!gArgs.GetBoolArg("-minting", true) || !gArgs.GetBoolArg("-staking", true))
{
strMintWarning = strMintDisabledMessage;
LogPrintf("proof-of-stake minter disabled\n");
Expand Down

0 comments on commit 2d94739

Please sign in to comment.