add staking=0 support

This commit is contained in:
EverGreenCoin 2017-12-15 23:07:36 -05:00
parent ed75e0d65f
commit e4a5c3ac0c
2 changed files with 6 additions and 2 deletions

View File

@ -243,6 +243,7 @@ std::string HelpMessage()
" -listen " + _("Accept connections from outside (default: 1 if no -proxy or -connect)") + "\n" +
" -bind=<addr> " + _("Bind to given address. Use [host]:port notation for IPv6") + "\n" +
" -dnsseed " + _("Find peers using DNS lookup (default: 0)") + "\n" +
" -staking " + _("Stake your coins to support the network and gain rewards (default: 1)") + "\n" +
" -nosynccheckpoints " + _("Disable sync checkpoints (default: 0)") + "\n" +
" -banscore=<n> " + _("Threshold for disconnecting misbehaving peers (default: 100)") + "\n" +
" -bantime=<n> " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)") + "\n" +

View File

@ -1885,6 +1885,9 @@ void StartNode(void* parg)
printf("Error; NewThread(ThreadDumpAddress) failed\n");
// ppcoin: mint proof-of-stake blocks in the background
if (!GetBoolArg("-staking", true))
printf("Staking disabled\n");
else
if (!NewThread(ThreadStakeMinter, pwalletMain))
printf("Error: NewThread(ThreadStakeMinter) failed\n");