mirror of
https://github.com/cygnusxi/CurecoinSource.git
synced 2025-07-27 15:44:25 +02:00
add staking=0 support
This commit is contained in:
parent
ed75e0d65f
commit
e4a5c3ac0c
@ -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" +
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user