 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
47 int64_t blockTime = 0;
50 if (!lockMain)
return false;
52 if (pindex ==
nullptr)
return false;
53 blockTime = pindex->
nTime;
165 return _(
"Synchronization pending...");
167 return _(
"Synchronizing masternodes...");
169 return _(
"Synchronizing masternode winners...");
171 return _(
"Synchronizing budgets...");
173 return _(
"Synchronization failed");
175 return _(
"Synchronization finished");
185 vRecv >> nItemID >> nCount;
220 if (!lockRecv)
return;
223 pnode->ClearFulfilledRequest(
"mnsync");
224 pnode->ClearFulfilledRequest(
"mnwsync");
225 pnode->ClearFulfilledRequest(
"busync");
260 if (!lockRecv)
return;
286 if (pnode->HasFulfilledRequest(
"mnsync"))
continue;
287 pnode->FulfilledRequest(
"mnsync");
309 if (pnode->HasFulfilledRequest(
"mnwsync"))
continue;
310 pnode->FulfilledRequest(
"mnwsync");
353 if (pnode->HasFulfilledRequest(
"busync"))
continue;
354 pnode->FulfilledRequest(
"busync");
std::atomic< bool > fImporting
std::map< uint256, CBudgetProposalBroadcast > mapSeenMasternodeBudgetProposals
std::vector< CNode * > vNodes
#define MASTERNODE_SYNC_BUDGET
int CountEnabled(int protocolVersion=-1)
int64_t GetTime()
For unit testing.
std::map< uint256, int > mapSeenSyncBudget
CActiveMasternode activeMasternode
Keep track of the active Masternode.
int GetMinMasternodePaymentsProto()
int RequestedMasternodeAssets
std::map< uint256, CFinalizedBudgetBroadcast > mapSeenFinalizedBudgets
CChain chainActive
The currently-connected chain of blocks.
std::map< uint256, CBudgetVote > mapSeenMasternodeBudgetVotes
bool IsBlockchainSynced()
Information about a peer.
int64_t lastMasternodeWinner
void AddedMasternodeList(uint256 hash)
int countMasternodeWinner
std::map< uint256, CMasternodePaymentWinner > mapMasternodePayeeVotes
int RequestedMasternodeAttempt
#define MASTERNODE_SYNC_TIMEOUT
#define TRY_LOCK(cs, name)
bool IsRegTestNet() const
#define MASTERNODE_SYNC_THRESHOLD
void ClearFulfilledRequest()
CMasternodeSync masternodeSync
const char * BUDGETVOTESYNC
The budgetvotesync message is used to request budget vote data from connected peers.
RecursiveMutex cs_main
Global state.
int ActiveProtocol()
See whether the protocol update is enforced for connected nodes.
CMasternodeMan mnodeman
Masternode manager.
int64_t nAssetSyncStarted
std::atomic< bool > fBlockchainSynced
void ManageStatus()
Manage status of main Masternode.
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a boost::optional result.
#define MASTERNODE_SYNC_BUDGET_PROP
#define MASTERNODE_SYNC_INITIAL
const char * GETMNWINNERS
The getmnwinners message is used to request winning masternode data from connected peers.
CMasternodePayments masternodePayments
Object for who's going to get paid on which blocks.
std::atomic< int64_t > lastProcess
void AddedMasternodeWinner(uint256 hash)
std::map< uint256, CMasternodeBroadcast > mapSeenMasternodeBroadcast
256-bit unsigned big integer.
#define MASTERNODE_SYNC_FINISHED
std::string GetSyncStatus()
#define MASTERNODE_SYNC_FAILED
#define LogPrint(category,...)
void AddedBudgetItem(uint256 hash)
#define MASTERNODE_SYNC_MNW
int64_t lastMasternodeList
#define MASTERNODE_SYNC_BUDGET_FIN
std::atomic< bool > fReindex
std::map< uint256, int > mapSeenSyncMNB
void DsegUpdate(CNode *pnode)
void ProcessMessage(CNode *pfrom, std::string &strCommand, CDataStream &vRecv)
const CChainParams & Params()
Return the currently selected parameters.
const char * SYNCSTATUSCOUNT
The syncstatuscount message is used to track the layer 2 syncing process.
Double ended buffer combining vector and stream-like interfaces.
CBlockIndex * Tip(bool fProofOfStake=false) const
Returns the index entry for the tip of this chain, or NULL if none.
std::map< uint256, CFinalizedBudgetVote > mapSeenFinalizedBudgetVotes
The block chain is a tree shaped structure starting with the genesis block at the root,...
#define MASTERNODE_SYNC_LIST
std::map< uint256, int > mapSeenSyncMNW