6 #ifndef PIVX_MASTERNODE_SYNC_H
7 #define PIVX_MASTERNODE_SYNC_H
16 #define MASTERNODE_SYNC_TIMEOUT 5
23 std::map<const char*, std::pair<int64_t, bool>>
mapMsgData;
87 template <
typename... Args>
90 template <
typename... Args>
std::map< NodeId, TierTwoPeerData > peersSyncState
void ProcessSyncStatusMsg(int nItemID, int itemCount)
void CheckAndUpdateSyncStatus()
void ClearFulfilledRequest()
void UpdateBlockchainSynced(bool isRegTestNet)
bool SyncWithNode(CNode *pnode, bool fLegacyMnObsolete)
void RequestDataTo(CNode *pnode, const char *msg, bool forceRequest, Args &&... args)
void PushMessage(CNode *pnode, const char *msg, Args &&... args)
static int GetNextAsset(int currentAsset)
int RequestedMasternodeAttempt
void SyncRegtest(CNode *pnode)
std::atomic< int64_t > lastProcess
int countMasternodeWinner
int64_t nAssetSyncStarted
std::string GetSyncStatus()
bool UpdatePeerSyncState(const NodeId &id, const char *msg, const int nextSyncStatus)
bool MessageDispatcher(CNode *pfrom, std::string &strCommand, CDataStream &vRecv)
void syncTimeout(const std::string &reason)
Information about a peer.
CMasternodeSync masternodeSync
std::map< const char *, std::pair< int64_t, bool > > mapMsgData