Moved unrelated-to-network calls in StartNode and StopNode into init.cpp

This commit is contained in:
Eric Lombrozo 2013-01-07 07:35:31 -08:00
parent 8926263dde
commit 4751d07efd
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ enum BindFlags {
BF_REPORT_ERROR = (1U << 1)
};
//////////////////////////////////////////////////////////////////////////////
//
// Shutdown
@ -99,6 +100,7 @@ void Shutdown()
StopRPCThreads();
ShutdownRPCMining();
bitdb.Flush(false);
GenerateBitcoins(false, NULL);
StopNode();
{
LOCK(cs_main);

View File

@ -1850,7 +1850,6 @@ void StartNode(boost::thread_group& threadGroup)
bool StopNode()
{
printf("StopNode()\n");
GenerateBitcoins(false, NULL);
MapPort(false);
nTransactionsUpdated++;
if (semOutbound)