Browse Source

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

pull/1/head
Eric Lombrozo 10 years ago
parent
commit
4751d07efd
  1. 2
      src/init.cpp
  2. 1
      src/net.cpp

2
src/init.cpp

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

1
src/net.cpp

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

Loading…
Cancel
Save