Dash Core  0.12.2.1
P2P Digital Currency
CMasternodeSync Class Reference

#include <masternode-sync.h>

Public Member Functions

 CMasternodeSync ()
 
void SendGovernanceSyncRequest (CNode *pnode, CConnman &connman)
 
bool IsFailed ()
 
bool IsBlockchainSynced ()
 
bool IsMasternodeListSynced ()
 
bool IsWinnersListSynced ()
 
bool IsSynced ()
 
int GetAssetID ()
 
int GetAttempt ()
 
void BumpAssetLastTime (std::string strFuncName)
 
int64_t GetAssetStartTime ()
 
std::string GetAssetName ()
 
std::string GetSyncStatus ()
 
void Reset ()
 
void SwitchToNextAsset (CConnman &connman)
 
void ProcessMessage (CNode *pfrom, std::string &strCommand, CDataStream &vRecv)
 
void ProcessTick (CConnman &connman)
 
void AcceptedBlockHeader (const CBlockIndex *pindexNew)
 
void NotifyHeaderTip (const CBlockIndex *pindexNew, bool fInitialDownload, CConnman &connman)
 
void UpdatedBlockTip (const CBlockIndex *pindexNew, bool fInitialDownload, CConnman &connman)
 

Private Member Functions

void Fail ()
 
void ClearFulfilledRequests (CConnman &connman)
 

Private Attributes

int nRequestedMasternodeAssets
 
int nRequestedMasternodeAttempt
 
int64_t nTimeAssetSyncStarted
 
int64_t nTimeLastBumped
 
int64_t nTimeLastFailure
 

Detailed Description

Definition at line 35 of file masternode-sync.h.

Constructor & Destructor Documentation

◆ CMasternodeSync()

CMasternodeSync::CMasternodeSync ( )
inline

Definition at line 54 of file masternode-sync.h.

Member Function Documentation

◆ AcceptedBlockHeader()

void CMasternodeSync::AcceptedBlockHeader ( const CBlockIndex pindexNew)

Definition at line 414 of file masternode-sync.cpp.

Referenced by CDSNotificationInterface::AcceptedBlockHeader().

◆ BumpAssetLastTime()

◆ ClearFulfilledRequests()

void CMasternodeSync::ClearFulfilledRequests ( CConnman connman)
private

Definition at line 137 of file masternode-sync.cpp.

Referenced by SwitchToNextAsset().

◆ Fail()

void CMasternodeSync::Fail ( )
private

Definition at line 20 of file masternode-sync.cpp.

Referenced by ProcessTick().

◆ GetAssetID()

int CMasternodeSync::GetAssetID ( )
inline

Definition at line 65 of file masternode-sync.h.

Referenced by mnsync().

◆ GetAssetName()

std::string CMasternodeSync::GetAssetName ( )

Definition at line 42 of file masternode-sync.cpp.

Referenced by mnsync(), ProcessTick(), and SwitchToNextAsset().

◆ GetAssetStartTime()

int64_t CMasternodeSync::GetAssetStartTime ( )
inline

Definition at line 68 of file masternode-sync.h.

Referenced by mnsync().

◆ GetAttempt()

int CMasternodeSync::GetAttempt ( )
inline

Definition at line 66 of file masternode-sync.h.

Referenced by mnsync().

◆ GetSyncStatus()

std::string CMasternodeSync::GetSyncStatus ( )

Definition at line 108 of file masternode-sync.cpp.

Referenced by BitcoinGUI::setAdditionalDataSyncProgress().

◆ IsBlockchainSynced()

◆ IsFailed()

bool CMasternodeSync::IsFailed ( )
inline

◆ IsMasternodeListSynced()

◆ IsSynced()

◆ IsWinnersListSynced()

◆ NotifyHeaderTip()

void CMasternodeSync::NotifyHeaderTip ( const CBlockIndex pindexNew,
bool  fInitialDownload,
CConnman connman 
)

Definition at line 424 of file masternode-sync.cpp.

Referenced by CDSNotificationInterface::NotifyHeaderTip().

◆ ProcessMessage()

void CMasternodeSync::ProcessMessage ( CNode pfrom,
std::string &  strCommand,
CDataStream vRecv 
)

Definition at line 122 of file masternode-sync.cpp.

Referenced by ProcessMessage().

◆ ProcessTick()

void CMasternodeSync::ProcessTick ( CConnman connman)

Definition at line 152 of file masternode-sync.cpp.

Referenced by ThreadCheckPrivateSend().

◆ Reset()

void CMasternodeSync::Reset ( )

Definition at line 26 of file masternode-sync.cpp.

Referenced by CMasternodeSync(), mnsync(), ProcessTick(), and UpdatedBlockTip().

◆ SendGovernanceSyncRequest()

void CMasternodeSync::SendGovernanceSyncRequest ( CNode pnode,
CConnman connman 
)

Definition at line 401 of file masternode-sync.cpp.

Referenced by ProcessTick().

◆ SwitchToNextAsset()

void CMasternodeSync::SwitchToNextAsset ( CConnman connman)

Definition at line 57 of file masternode-sync.cpp.

Referenced by mnsync(), ProcessTick(), and UpdatedBlockTip().

◆ UpdatedBlockTip()

void CMasternodeSync::UpdatedBlockTip ( const CBlockIndex pindexNew,
bool  fInitialDownload,
CConnman connman 
)

Definition at line 437 of file masternode-sync.cpp.

Referenced by CDSNotificationInterface::UpdatedBlockTip().

Member Data Documentation

◆ nRequestedMasternodeAssets

int CMasternodeSync::nRequestedMasternodeAssets
private

◆ nRequestedMasternodeAttempt

int CMasternodeSync::nRequestedMasternodeAttempt
private

Definition at line 41 of file masternode-sync.h.

Referenced by GetAttempt(), ProcessTick(), Reset(), and SwitchToNextAsset().

◆ nTimeAssetSyncStarted

int64_t CMasternodeSync::nTimeAssetSyncStarted
private

Definition at line 44 of file masternode-sync.h.

Referenced by GetAssetStartTime(), Reset(), and SwitchToNextAsset().

◆ nTimeLastBumped

int64_t CMasternodeSync::nTimeLastBumped
private

Definition at line 46 of file masternode-sync.h.

Referenced by BumpAssetLastTime(), ProcessTick(), and Reset().

◆ nTimeLastFailure

int64_t CMasternodeSync::nTimeLastFailure
private

Definition at line 48 of file masternode-sync.h.

Referenced by Fail(), ProcessTick(), and Reset().


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