mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-11 07:17:53 +00:00
Move GenerateBitcoins() call out of net.cpp's StartNode()
The internal miner is closely bound to the wallet engine, not the blockchain engine.
This commit is contained in:
parent
9d8d85920a
commit
a0cafb7945
@ -1027,6 +1027,9 @@ bool AppInit2()
|
|||||||
if (fServer)
|
if (fServer)
|
||||||
NewThread(ThreadRPCServer, NULL);
|
NewThread(ThreadRPCServer, NULL);
|
||||||
|
|
||||||
|
// Generate coins in the background
|
||||||
|
GenerateBitcoins(GetBoolArg("-gen", false), pwalletMain);
|
||||||
|
|
||||||
// ********************************************************* Step 12: finished
|
// ********************************************************* Step 12: finished
|
||||||
|
|
||||||
uiInterface.InitMessage(_("Done loading"));
|
uiInterface.InitMessage(_("Done loading"));
|
||||||
|
@ -2047,9 +2047,6 @@ void StartNode(void* parg)
|
|||||||
// Dump network addresses
|
// Dump network addresses
|
||||||
if (!NewThread(ThreadDumpAddress, NULL))
|
if (!NewThread(ThreadDumpAddress, NULL))
|
||||||
printf("Error; NewThread(ThreadDumpAddress) failed\n");
|
printf("Error; NewThread(ThreadDumpAddress) failed\n");
|
||||||
|
|
||||||
// Generate coins in the background
|
|
||||||
GenerateBitcoins(GetBoolArg("-gen", false), pwalletMain);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool StopNode()
|
bool StopNode()
|
||||||
|
Loading…
Reference in New Issue
Block a user