PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
TierTwoSyncState Class Reference

#include <tiertwo_sync_state.h>

Public Member Functions

bool IsBlockchainSynced () const
 
bool IsSynced () const
 
bool IsSporkListSynced () const
 
bool IsMasternodeListSynced () const
 
void AddedMasternodeList (const uint256 &hash)
 
void AddedMasternodeWinner (const uint256 &hash)
 
void AddedBudgetItem (const uint256 &hash)
 
int64_t GetlastMasternodeList () const
 
int64_t GetlastMasternodeWinner () const
 
int64_t GetlastBudgetItem () const
 
void ResetLastBudgetItem ()
 
void EraseSeenMNB (const uint256 &hash)
 
void EraseSeenMNW (const uint256 &hash)
 
void EraseSeenSyncBudget (const uint256 &hash)
 
void ResetData ()
 
void SetBlockchainSync (bool f, int64_t cur_time)
 
void SetCurrentSyncPhase (int sync_phase)
 
int GetSyncPhase () const
 
bool CanUpdateChainSync (int64_t cur_time) const
 

Private Attributes

std::atomic< bool > fBlockchainSynced {false}
 
std::atomic< int64_t > last_blockchain_sync_update_time {0}
 
std::atomic< int > m_current_sync_phase {0}
 
std::map< uint256, int > mapSeenSyncMNB
 
std::map< uint256, int > mapSeenSyncMNW
 
std::map< uint256, int > mapSeenSyncBudget
 
int64_t lastMasternodeList {0}
 
int64_t lastMasternodeWinner {0}
 
int64_t lastBudgetItem {0}
 

Detailed Description

Definition at line 30 of file tiertwo_sync_state.h.

Member Function Documentation

◆ AddedBudgetItem()

void TierTwoSyncState::AddedBudgetItem ( const uint256 hash)

Definition at line 35 of file tiertwo_sync_state.cpp.

Here is the caller graph for this function:

◆ AddedMasternodeList()

void TierTwoSyncState::AddedMasternodeList ( const uint256 hash)

Definition at line 25 of file tiertwo_sync_state.cpp.

Here is the caller graph for this function:

◆ AddedMasternodeWinner()

void TierTwoSyncState::AddedMasternodeWinner ( const uint256 hash)

Definition at line 30 of file tiertwo_sync_state.cpp.

Here is the caller graph for this function:

◆ CanUpdateChainSync()

bool TierTwoSyncState::CanUpdateChainSync ( int64_t  cur_time) const
inline

Definition at line 64 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ EraseSeenMNB()

void TierTwoSyncState::EraseSeenMNB ( const uint256 hash)
inline

Definition at line 48 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ EraseSeenMNW()

void TierTwoSyncState::EraseSeenMNW ( const uint256 hash)
inline

Definition at line 49 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ EraseSeenSyncBudget()

void TierTwoSyncState::EraseSeenSyncBudget ( const uint256 hash)
inline

Definition at line 50 of file tiertwo_sync_state.h.

◆ GetlastBudgetItem()

int64_t TierTwoSyncState::GetlastBudgetItem ( ) const
inline

Definition at line 44 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ GetlastMasternodeList()

int64_t TierTwoSyncState::GetlastMasternodeList ( ) const
inline

Definition at line 42 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ GetlastMasternodeWinner()

int64_t TierTwoSyncState::GetlastMasternodeWinner ( ) const
inline

Definition at line 43 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ GetSyncPhase()

int TierTwoSyncState::GetSyncPhase ( ) const
inline

Definition at line 61 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ IsBlockchainSynced()

bool TierTwoSyncState::IsBlockchainSynced ( ) const
inline

Definition at line 32 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ IsMasternodeListSynced()

bool TierTwoSyncState::IsMasternodeListSynced ( ) const
inline

Definition at line 35 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ IsSporkListSynced()

bool TierTwoSyncState::IsSporkListSynced ( ) const
inline

Definition at line 34 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ IsSynced()

bool TierTwoSyncState::IsSynced ( ) const
inline

Definition at line 33 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ ResetData()

void TierTwoSyncState::ResetData ( )

Definition at line 40 of file tiertwo_sync_state.cpp.

Here is the caller graph for this function:

◆ ResetLastBudgetItem()

void TierTwoSyncState::ResetLastBudgetItem ( )
inline

Definition at line 46 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ SetBlockchainSync()

void TierTwoSyncState::SetBlockchainSync ( bool  f,
int64_t  cur_time 
)
inline

Definition at line 56 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

◆ SetCurrentSyncPhase()

void TierTwoSyncState::SetCurrentSyncPhase ( int  sync_phase)
inline

Definition at line 60 of file tiertwo_sync_state.h.

Here is the caller graph for this function:

Member Data Documentation

◆ fBlockchainSynced

std::atomic<bool> TierTwoSyncState::fBlockchainSynced {false}
private

Definition at line 67 of file tiertwo_sync_state.h.

◆ last_blockchain_sync_update_time

std::atomic<int64_t> TierTwoSyncState::last_blockchain_sync_update_time {0}
private

Definition at line 68 of file tiertwo_sync_state.h.

◆ lastBudgetItem

int64_t TierTwoSyncState::lastBudgetItem {0}
private

Definition at line 78 of file tiertwo_sync_state.h.

◆ lastMasternodeList

int64_t TierTwoSyncState::lastMasternodeList {0}
private

Definition at line 76 of file tiertwo_sync_state.h.

◆ lastMasternodeWinner

int64_t TierTwoSyncState::lastMasternodeWinner {0}
private

Definition at line 77 of file tiertwo_sync_state.h.

◆ m_current_sync_phase

std::atomic<int> TierTwoSyncState::m_current_sync_phase {0}
private

Definition at line 69 of file tiertwo_sync_state.h.

◆ mapSeenSyncBudget

std::map<uint256, int> TierTwoSyncState::mapSeenSyncBudget
private

Definition at line 74 of file tiertwo_sync_state.h.

◆ mapSeenSyncMNB

std::map<uint256, int> TierTwoSyncState::mapSeenSyncMNB
private

Definition at line 72 of file tiertwo_sync_state.h.

◆ mapSeenSyncMNW

std::map<uint256, int> TierTwoSyncState::mapSeenSyncMNW
private

Definition at line 73 of file tiertwo_sync_state.h.


The documentation for this class was generated from the following files: