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:
Jeff Garzik
2013-03-31 01:54:27 -04:00
committed by Jeff Garzik
parent 9d8d85920a
commit a0cafb7945
2 changed files with 3 additions and 3 deletions

View File

@@ -2047,9 +2047,6 @@ void StartNode(void* parg)
// Dump network addresses
if (!NewThread(ThreadDumpAddress, NULL))
printf("Error; NewThread(ThreadDumpAddress) failed\n");
// Generate coins in the background
GenerateBitcoins(GetBoolArg("-gen", false), pwalletMain);
}
bool StopNode()