Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
masternode-sync.h
Go to the documentation of this file.
19 static const int MASTERNODE_SYNC_TIMEOUT_SECONDS = 30; // our blocks are 2.5 minutes so 30 seconds should be fine
20 static const int MASTERNODE_SYNC_RESET_SECONDS = 600; // Reset fReachedBestHeader in CMasternodeSync::Reset if UpdateBlockTip hasn't been called for this seconds
void SwitchToNextAsset(CConnman &connman)
Definition: masternode-sync.cpp:53
static const int MASTERNODE_SYNC_GOVOBJ_VOTE
Definition: masternode-sync.h:15
int64_t nTimeLastUpdateBlockTip
Last time UpdateBlockTip has been called.
Definition: masternode-sync.h:44
static const int MASTERNODE_SYNC_RESET_SECONDS
Definition: masternode-sync.h:20
void NotifyHeaderTip(const CBlockIndex *pindexNew, bool fInitialDownload, CConnman &connman)
Definition: masternode-sync.cpp:318
static const int MASTERNODE_SYNC_BLOCKCHAIN
Definition: masternode-sync.h:12
Double ended buffer combining vector and stream-like interfaces.
Definition: streams.h:103
static const int MASTERNODE_SYNC_GOVERNANCE
Definition: masternode-sync.h:13
Definition: masternode-sync.h:28
static const int MASTERNODE_SYNC_TIMEOUT_SECONDS
Definition: masternode-sync.h:19
void BumpAssetLastTime(const std::string &strFuncName)
Definition: masternode-sync.cpp:35
void AcceptedBlockHeader(const CBlockIndex *pindexNew)
Definition: masternode-sync.cpp:308
void DoMaintenance(CConnman &connman)
Definition: masternode-sync.cpp:371
static const int MASTERNODE_SYNC_TICK_SECONDS
Definition: masternode-sync.h:18
void ProcessMessage(CNode *pfrom, const std::string &strCommand, CDataStream &vRecv)
Definition: masternode-sync.cpp:89
bool fReachedBestHeader
Set to true if best header is reached in CMasternodeSync::UpdatedBlockTip.
Definition: masternode-sync.h:42
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:170
void UpdatedBlockTip(const CBlockIndex *pindexNew, bool fInitialDownload, CConnman &connman)
Definition: masternode-sync.cpp:331
void SendGovernanceSyncRequest(CNode *pnode, CConnman &connman)
Definition: masternode-sync.cpp:293
void Reset(bool fForce=false, bool fNotifyReset=true)
Definition: masternode-sync.cpp:19