mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-11 07:17:53 +00:00
Moved unrelated-to-network calls in StartNode and StopNode into init.cpp
This commit is contained in:
parent
8926263dde
commit
4751d07efd
@ -45,6 +45,7 @@ enum BindFlags {
|
|||||||
BF_REPORT_ERROR = (1U << 1)
|
BF_REPORT_ERROR = (1U << 1)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// Shutdown
|
// Shutdown
|
||||||
@ -99,6 +100,7 @@ void Shutdown()
|
|||||||
StopRPCThreads();
|
StopRPCThreads();
|
||||||
ShutdownRPCMining();
|
ShutdownRPCMining();
|
||||||
bitdb.Flush(false);
|
bitdb.Flush(false);
|
||||||
|
GenerateBitcoins(false, NULL);
|
||||||
StopNode();
|
StopNode();
|
||||||
{
|
{
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
|
@ -1850,7 +1850,6 @@ void StartNode(boost::thread_group& threadGroup)
|
|||||||
bool StopNode()
|
bool StopNode()
|
||||||
{
|
{
|
||||||
printf("StopNode()\n");
|
printf("StopNode()\n");
|
||||||
GenerateBitcoins(false, NULL);
|
|
||||||
MapPort(false);
|
MapPort(false);
|
||||||
nTransactionsUpdated++;
|
nTransactionsUpdated++;
|
||||||
if (semOutbound)
|
if (semOutbound)
|
||||||
|
Loading…
Reference in New Issue
Block a user