5 #ifndef PIVX_TIERTWO_INIT_H
6 #define PIVX_TIERTWO_INIT_H
11 static const bool DEFAULT_MASTERNODE =
false;
12 static const bool DEFAULT_MNCONFLOCK =
true;
37 bool LoadTierTwo(
int chain_active_height,
bool load_cache_files);
bool InitActiveMN()
Initialize the active Masternode manager.
void InterruptTierTwo()
Interrupt tier two threads.
void ResetTierTwoInterfaces()
Resets the interfaces objects.
std::string GetTierTwoHelpString(bool showDebug)
void SetBudgetFinMode(const std::string &mode)
void InitTierTwoChainTip()
Initialize chain tip.
void RegisterTierTwoValidationInterface()
Register all tier two objects.
void InitTierTwoInterfaces()
Init the interfaces objects.
void InitTierTwoPreChainLoad(bool fReindex)
Inits the tier two global objects.
void StopTierTwoThreads()
Stops tier two workers.
bool LoadTierTwo(int chain_active_height, bool load_cache_files)
Loads from disk all the tier two related objects.
void StartTierTwoThreadsAndScheduleJobs(boost::thread_group &threadGroup, CScheduler &scheduler)
Starts tier two threads and jobs.
void DeleteTierTwo()
Cleans manager and worker objects pointers.
void DumpTierTwo()
Dump tier two managers to disk.
void InitTierTwoPostCoinsCacheLoad(CScheduler *scheduler)
Inits the tier two global objects that require access to the coins tip cache.
std::atomic< bool > fReindex
boost::thread_group threadGroup