Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

CMasternodeMetaInfo Class Reference

#include <masternode-meta.h>

+ Collaboration diagram for CMasternodeMetaInfo:

Public Member Functions

 CMasternodeMetaInfo ()
 
 CMasternodeMetaInfo (const uint256 &_proTxHash)
 
 CMasternodeMetaInfo (const CMasternodeMetaInfo &ref)
 
template<typename Stream , typename Operation >
ADD_SERIALIZE_METHODS void SerializationOp (Stream &s, Operation ser_action)
 
UniValue ToJson () const
 
const uint256GetProTxHash () const
 
int64_t GetLastDsq () const
 
int GetMixingTxCount () const
 
bool IsValidForMixingTxes () const
 
void AddGovernanceVote (const uint256 &nGovernanceObjectHash)
 
void RemoveGovernanceObject (const uint256 &nGovernanceObjectHash)
 
void SetLastOutboundAttempt (int64_t t)
 
int64_t GetLastOutboundAttempt () const
 
void SetLastOutboundSuccess (int64_t t)
 
int64_t GetLastOutboundSuccess () const
 

Private Attributes

CCriticalSection cs
 
uint256 proTxHash
 
int64_t nLastDsq = 0
 
int nMixingTxCount = 0
 
std::map< uint256, int > mapGovernanceObjectsVotedOn
 
int64_t lastOutboundAttempt = 0
 
int64_t lastOutboundSuccess = 0
 

Friends

class CMasternodeMetaMan
 

Detailed Description

Definition at line 22 of file masternode-meta.h.

Constructor & Destructor Documentation

◆ CMasternodeMetaInfo() [1/3]

CMasternodeMetaInfo::CMasternodeMetaInfo ( )
inline

Definition at line 42 of file masternode-meta.h.

◆ CMasternodeMetaInfo() [2/3]

CMasternodeMetaInfo::CMasternodeMetaInfo ( const uint256 _proTxHash)
inlineexplicit

Definition at line 43 of file masternode-meta.h.

◆ CMasternodeMetaInfo() [3/3]

CMasternodeMetaInfo::CMasternodeMetaInfo ( const CMasternodeMetaInfo ref)
inline

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

Member Function Documentation

◆ AddGovernanceVote()

void CMasternodeMetaInfo::AddGovernanceVote ( const uint256 nGovernanceObjectHash)

Definition at line 29 of file masternode-meta.cpp.

References cs, LOCK, and mapGovernanceObjectsVotedOn.

◆ GetLastDsq()

int64_t CMasternodeMetaInfo::GetLastDsq ( ) const
inline

Definition at line 71 of file masternode-meta.h.

References cs, LOCK, and nLastDsq.

◆ GetLastOutboundAttempt()

int64_t CMasternodeMetaInfo::GetLastOutboundAttempt ( ) const
inline

Definition at line 82 of file masternode-meta.h.

References cs, lastOutboundAttempt, and LOCK.

◆ GetLastOutboundSuccess()

int64_t CMasternodeMetaInfo::GetLastOutboundSuccess ( ) const
inline

Definition at line 84 of file masternode-meta.h.

References cs, lastOutboundSuccess, and LOCK.

◆ GetMixingTxCount()

int CMasternodeMetaInfo::GetMixingTxCount ( ) const
inline

Definition at line 72 of file masternode-meta.h.

References cs, LOCK, and nMixingTxCount.

Referenced by IsValidForMixingTxes().

◆ GetProTxHash()

const uint256& CMasternodeMetaInfo::GetProTxHash ( ) const
inline

Definition at line 70 of file masternode-meta.h.

References cs, LOCK, and proTxHash.

◆ IsValidForMixingTxes()

bool CMasternodeMetaInfo::IsValidForMixingTxes ( ) const
inline

Definition at line 74 of file masternode-meta.h.

References GetMixingTxCount(), and MASTERNODE_MAX_MIXING_TXES.

◆ RemoveGovernanceObject()

void CMasternodeMetaInfo::RemoveGovernanceObject ( const uint256 nGovernanceObjectHash)

Definition at line 38 of file masternode-meta.cpp.

References cs, LOCK, and mapGovernanceObjectsVotedOn.

◆ SerializationOp()

template<typename Stream , typename Operation >
ADD_SERIALIZE_METHODS void CMasternodeMetaInfo::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

◆ SetLastOutboundAttempt()

void CMasternodeMetaInfo::SetLastOutboundAttempt ( int64_t  t)
inline

Definition at line 81 of file masternode-meta.h.

References cs, lastOutboundAttempt, and LOCK.

◆ SetLastOutboundSuccess()

void CMasternodeMetaInfo::SetLastOutboundSuccess ( int64_t  t)
inline

Definition at line 83 of file masternode-meta.h.

References cs, lastOutboundSuccess, and LOCK.

◆ ToJson()

UniValue CMasternodeMetaInfo::ToJson ( ) const

Friends And Related Function Documentation

◆ CMasternodeMetaMan

friend class CMasternodeMetaMan
friend

Definition at line 24 of file masternode-meta.h.

Member Data Documentation

◆ cs

◆ lastOutboundAttempt

int64_t CMasternodeMetaInfo::lastOutboundAttempt = 0
private

◆ lastOutboundSuccess

int64_t CMasternodeMetaInfo::lastOutboundSuccess = 0
private

◆ mapGovernanceObjectsVotedOn

std::map<uint256, int> CMasternodeMetaInfo::mapGovernanceObjectsVotedOn
private

Definition at line 36 of file masternode-meta.h.

Referenced by AddGovernanceVote(), RemoveGovernanceObject(), and SerializationOp().

◆ nLastDsq

int64_t CMasternodeMetaInfo::nLastDsq = 0
private

Definition at line 32 of file masternode-meta.h.

Referenced by GetLastDsq(), SerializationOp(), and ToJson().

◆ nMixingTxCount

int CMasternodeMetaInfo::nMixingTxCount = 0
private

Definition at line 33 of file masternode-meta.h.

Referenced by GetMixingTxCount(), SerializationOp(), and ToJson().

◆ proTxHash

uint256 CMasternodeMetaInfo::proTxHash
private

Definition at line 29 of file masternode-meta.h.

Referenced by GetProTxHash(), and SerializationOp().


The documentation for this class was generated from the following files:
Released under the MIT license