Dash Core  0.12.2.1
P2P Digital Currency
CDashNetwork Class Reference

#include <governance-classes.h>

+ Inheritance diagram for CDashNetwork:

Public Member Functions

 CDashNetwork (UniValue objIn)
 
uint256 GetHash ()
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
- Public Member Functions inherited from CGovernanceObject
 CGovernanceObject ()
 
 CGovernanceObject (uint256 nHashParentIn, int nRevisionIn, int64_t nTime, uint256 nCollateralHashIn, std::string strDataIn)
 
 CGovernanceObject (const CGovernanceObject &other)
 
void swap (CGovernanceObject &first, CGovernanceObject &second)
 
int64_t GetCreationTime () const
 
int64_t GetDeletionTime () const
 
int GetObjectType () const
 
const uint256GetCollateralHash () const
 
const CTxInGetMasternodeVin () const
 
bool IsSetCachedFunding () const
 
bool IsSetCachedValid () const
 
bool IsSetCachedDelete () const
 
bool IsSetCachedEndorsed () const
 
bool IsSetDirtyCache () const
 
bool IsSetExpired () const
 
void InvalidateVoteCache ()
 
CGovernanceObjectVoteFileGetVoteFile ()
 
void SetMasternodeVin (const COutPoint &outpoint)
 
bool Sign (CKey &keyMasternode, CPubKey &pubKeyMasternode)
 
bool CheckSignature (CPubKey &pubKeyMasternode)
 
std::string GetSignatureMessage () const
 
bool IsValidLocally (std::string &strError, bool fCheckCollateral)
 
bool IsValidLocally (std::string &strError, bool &fMissingMasternode, bool &fMissingConfirmations, bool fCheckCollateral)
 
bool IsCollateralValid (std::string &strError, bool &fMissingConfirmations)
 Check the collateral transaction for the budget proposal/finalized budget. More...
 
void UpdateLocalValidity ()
 
void UpdateSentinelVariables ()
 
int GetObjectSubtype ()
 
CAmount GetMinCollateralFee ()
 
UniValue GetJSONObject ()
 
void Relay (CConnman &connman)
 
uint256 GetHash () const
 
int CountMatchingVotes (vote_signal_enum_t eVoteSignalIn, vote_outcome_enum_t eVoteOutcomeIn) const
 
int GetAbsoluteYesCount (vote_signal_enum_t eVoteSignalIn) const
 
int GetAbsoluteNoCount (vote_signal_enum_t eVoteSignalIn) const
 
int GetYesCount (vote_signal_enum_t eVoteSignalIn) const
 
int GetNoCount (vote_signal_enum_t eVoteSignalIn) const
 
int GetAbstainCount (vote_signal_enum_t eVoteSignalIn) const
 
bool GetCurrentMNVotes (const COutPoint &mnCollateralOutpoint, vote_rec_t &voteRecord)
 
std::string GetDataAsHex ()
 
std::string GetDataAsString ()
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
CGovernanceObjectoperator= (CGovernanceObject from)
 

Public Attributes

 ADD_SERIALIZE_METHODS
 
- Public Attributes inherited from CGovernanceObject
 ADD_SERIALIZE_METHODS
 

Private Attributes

std::string strName
 
std::string strURL
 

Additional Inherited Members

- Public Types inherited from CGovernanceObject
typedef std::map< COutPoint, vote_rec_tvote_m_t
 
typedef vote_m_t::iterator vote_m_it
 
typedef vote_m_t::const_iterator vote_m_cit
 
typedef CacheMultiMap< COutPoint, vote_time_pair_tvote_mcache_t
 

Detailed Description

Definition at line 133 of file governance-classes.h.

Constructor & Destructor Documentation

◆ CDashNetwork()

CDashNetwork::CDashNetwork ( UniValue  objIn)
inline

Definition at line 141 of file governance-classes.h.

Member Function Documentation

◆ GetHash()

uint256 CDashNetwork::GetHash ( )
inlinevirtual

Implements CGovernanceObject.

Definition at line 149 of file governance-classes.h.

◆ SerializationOp()

template<typename Stream , typename Operation >
void CDashNetwork::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 164 of file governance-classes.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CDashNetwork::ADD_SERIALIZE_METHODS

Definition at line 161 of file governance-classes.h.

◆ strName

std::string CDashNetwork::strName
private

Definition at line 136 of file governance-classes.h.

Referenced by CDashNetwork(), GetHash(), and SerializationOp().

◆ strURL

std::string CDashNetwork::strURL
private

Definition at line 137 of file governance-classes.h.

Referenced by CDashNetwork(), GetHash(), and SerializationOp().


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