mirror of
https://github.com/cygnusxi/CurecoinSource.git
synced 2025-07-29 00:24:56 +02:00
Add staking=0 support
This commit is contained in:
parent
4403d0832d
commit
03b18b4f42
@ -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