mirror of
https://github.com/cygnusxi/CurecoinSource.git
synced 2025-07-30 09:05:29 +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");
|
printf("Error; NewThread(ThreadDumpAddress) failed\n");
|
||||||
|
|
||||||
// ppcoin: mint proof-of-stake blocks in the background
|
// ppcoin: mint proof-of-stake blocks in the background
|
||||||
if (!NewThread(ThreadStakeMinter, pwalletMain))
|
if (!GetBoolArg("-staking", true))
|
||||||
printf("Error: NewThread(ThreadStakeMinter) failed\n");
|
printf("Staking disabled\n");
|
||||||
|
else
|
||||||
|
if (!NewThread(ThreadStakeMinter, pwalletMain))
|
||||||
|
printf("Error: NewThread(ThreadStakeMinter) failed\n");
|
||||||
|
|
||||||
// Generate coins in the background
|
// Generate coins in the background
|
||||||
Generatecurecoins(GetBoolArg("-gen", false), pwalletMain);
|
Generatecurecoins(GetBoolArg("-gen", false), pwalletMain);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user