|
|
@ -13,6 +13,7 @@
|
|
|
|
#include "chainparams.h"
|
|
|
|
#include "chainparams.h"
|
|
|
|
#include "clientversion.h"
|
|
|
|
#include "clientversion.h"
|
|
|
|
#include "primitives/transaction.h"
|
|
|
|
#include "primitives/transaction.h"
|
|
|
|
|
|
|
|
#include "scheduler.h"
|
|
|
|
#include "ui_interface.h"
|
|
|
|
#include "ui_interface.h"
|
|
|
|
#include "crypto/common.h"
|
|
|
|
#include "crypto/common.h"
|
|
|
|
|
|
|
|
|
|
|
@ -1590,7 +1591,7 @@ void static Discover(boost::thread_group& threadGroup)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void StartNode(boost::thread_group& threadGroup)
|
|
|
|
void StartNode(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
uiInterface.InitMessage(_("Loading addresses..."));
|
|
|
|
uiInterface.InitMessage(_("Loading addresses..."));
|
|
|
|
// Load addresses for peers.dat
|
|
|
|
// Load addresses for peers.dat
|
|
|
@ -1640,7 +1641,7 @@ void StartNode(boost::thread_group& threadGroup)
|
|
|
|
threadGroup.create_thread(boost::bind(&TraceThread<void (*)()>, "msghand", &ThreadMessageHandler));
|
|
|
|
threadGroup.create_thread(boost::bind(&TraceThread<void (*)()>, "msghand", &ThreadMessageHandler));
|
|
|
|
|
|
|
|
|
|
|
|
// Dump network addresses
|
|
|
|
// Dump network addresses
|
|
|
|
threadGroup.create_thread(boost::bind(&LoopForever<void (*)()>, "dumpaddr", &DumpAddresses, DUMP_ADDRESSES_INTERVAL * 1000));
|
|
|
|
scheduler.scheduleEvery(&DumpAddresses, DUMP_ADDRESSES_INTERVAL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool StopNode()
|
|
|
|
bool StopNode()
|
|
|
|