diff --git a/src/init.cpp b/src/init.cpp index 8520d61..9dccc86 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -243,6 +243,7 @@ std::string HelpMessage() " -listen " + _("Accept connections from outside (default: 1 if no -proxy or -connect)") + "\n" + " -bind= " + _("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= " + _("Threshold for disconnecting misbehaving peers (default: 100)") + "\n" + " -bantime= " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)") + "\n" + diff --git a/src/net.cpp b/src/net.cpp index d80d1cb..d59381b 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1885,8 +1885,11 @@ void StartNode(void* parg) printf("Error; NewThread(ThreadDumpAddress) failed\n"); // ppcoin: mint proof-of-stake blocks in the background - if (!NewThread(ThreadStakeMinter, pwalletMain)) - printf("Error: NewThread(ThreadStakeMinter) failed\n"); + if (!GetBoolArg("-staking", true)) + printf("Staking disabled\n"); + else + if (!NewThread(ThreadStakeMinter, pwalletMain)) + printf("Error: NewThread(ThreadStakeMinter) failed\n"); // Generate coins in the background Generatecurecoins(GetBoolArg("-gen", false), pwalletMain);