Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Governance Object. More...
#include <governance-object.h>
Public Types | |
typedef std::map< COutPoint, vote_rec_t > | vote_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_t > | vote_cmm_t |
Public Member Functions | |
CGovernanceObject () | |
CGovernanceObject (const uint256 &nHashParentIn, int nRevisionIn, int64_t nTime, const uint256 &nCollateralHashIn, const std::string &strDataHexIn) | |
CGovernanceObject (const CGovernanceObject &other) | |
int64_t | GetCreationTime () const |
int64_t | GetDeletionTime () const |
int | GetObjectType () const |
const uint256 & | GetCollateralHash () const |
const COutPoint & | GetMasternodeOutpoint () const |
bool | IsSetCachedFunding () const |
bool | IsSetCachedValid () const |
bool | IsSetCachedDelete () const |
bool | IsSetCachedEndorsed () const |
bool | IsSetDirtyCache () const |
bool | IsSetExpired () const |
void | SetExpired () |
const CGovernanceObjectVoteFile & | GetVoteFile () const |
void | SetMasternodeOutpoint (const COutPoint &outpoint) |
bool | Sign (const CBLSSecretKey &key) |
bool | CheckSignature (const CBLSPublicKey &pubKey) const |
uint256 | GetSignatureHash () const |
bool | IsValidLocally (std::string &strError, bool fCheckCollateral) const |
bool | IsValidLocally (std::string &strError, bool &fMissingConfirmations, bool fCheckCollateral) const |
bool | IsCollateralValid (std::string &strError, bool &fMissingConfirmations) const |
Check the collateral transaction for the budget proposal/finalized budget. More... | |
void | UpdateLocalValidity () |
void | UpdateSentinelVariables () |
void | PrepareDeletion (int64_t nDeletionTime_) |
CAmount | GetMinCollateralFee () const |
UniValue | GetJSONObject () |
Return the actual object from the vchData JSON structure. More... | |
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 |
Get specific vote counts for each outcome (funding, validity, etc) More... | |
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) const |
std::string | GetDataAsHexString () const |
GetData - AsMore... | |
std::string | GetDataAsPlainString () const |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
void | LoadData () |
LoadDataMore... | |
void | GetData (UniValue &objResult) |
GetData - Example usage:More... | |
bool | ProcessVote (CNode *pfrom, const CGovernanceVote &vote, CGovernanceException &exception, CConnman &connman) |
void | ClearMasternodeVotes () |
Called when MN's which have voted on this object have been removed. More... | |
std::set< uint256 > | RemoveInvalidVotes (const COutPoint &mnOutpoint) |
Public Attributes | |
ADD_SERIALIZE_METHODS | |
Private Attributes | |
CCriticalSection | cs |
critical section to protect the inner data structures More... | |
int | nObjectType |
Object typecode. More... | |
uint256 | nHashParent |
parent object, 0 is root More... | |
int | nRevision |
object revision in the system More... | |
int64_t | nTime |
time this object was created More... | |
int64_t | nDeletionTime |
time this object was marked for deletion More... | |
uint256 | nCollateralHash |
fee-tx More... | |
std::vector< unsigned char > | vchData |
Data field - can be used for anything. More... | |
COutPoint | masternodeOutpoint |
Masternode info for signed objects. More... | |
std::vector< unsigned char > | vchSig |
bool | fCachedLocalValidity |
is valid by blockchain More... | |
std::string | strLocalValidityError |
bool | fCachedFunding |
true == minimum network support has been reached for this object to be funded (doesn't mean it will for sure though) More... | |
bool | fCachedValid |
true == minimum network has been reached flagging this object as a valid and understood governance object (e.g, the serialized data is correct format, etc) More... | |
bool | fCachedDelete |
true == minimum network support has been reached saying this object should be deleted from the system entirely More... | |
bool | fCachedEndorsed |
true == minimum network support has been reached flagging this object as endorsed by an elected representative body (e.g. More... | |
bool | fDirtyCache |
object was updated and cached values should be updated soon More... | |
bool | fExpired |
Object is no longer of interest. More... | |
bool | fUnparsable |
Failed to parse object data. More... | |
vote_m_t | mapCurrentMNVotes |
CGovernanceObjectVoteFile | fileVotes |
Detailed Description
Governance Object.
Definition at line 107 of file governance-object.h.
Member Typedef Documentation
◆ vote_cmm_t
Definition at line 116 of file governance-object.h.
◆ vote_m_cit
typedef vote_m_t::const_iterator CGovernanceObject::vote_m_cit |
Definition at line 114 of file governance-object.h.
◆ vote_m_it
typedef vote_m_t::iterator CGovernanceObject::vote_m_it |
Definition at line 112 of file governance-object.h.
◆ vote_m_t
typedef std::map<COutPoint, vote_rec_t> CGovernanceObject::vote_m_t |
Definition at line 110 of file governance-object.h.
Constructor & Destructor Documentation
◆ CGovernanceObject() [1/3]
CGovernanceObject::CGovernanceObject | ( | ) |
Definition at line 21 of file governance-object.cpp.
References LoadData().
◆ CGovernanceObject() [2/3]
CGovernanceObject::CGovernanceObject | ( | const uint256 & | nHashParentIn, |
int | nRevisionIn, | ||
int64_t | nTime, | ||
const uint256 & | nCollateralHashIn, | ||
const std::string & | strDataHexIn | ||
) |
Definition at line 48 of file governance-object.cpp.
References LoadData().
◆ CGovernanceObject() [3/3]
CGovernanceObject::CGovernanceObject | ( | const CGovernanceObject & | other | ) |
Definition at line 75 of file governance-object.cpp.
Member Function Documentation
◆ CheckSignature()
bool CGovernanceObject::CheckSignature | ( | const CBLSPublicKey & | pubKey | ) | const |
Definition at line 316 of file governance-object.cpp.
References GetSignatureHash(), LogPrintf, CBLSWrapper< ImplType, _SerSize, C >::SetBuf(), vchSig, and CBLSSignature::VerifyInsecure().
Referenced by IsValidLocally().
◆ ClearMasternodeVotes()
void CGovernanceObject::ClearMasternodeVotes | ( | ) |
Called when MN's which have voted on this object have been removed.
Definition at line 219 of file governance-object.cpp.
References cs, deterministicMNManager, fDirtyCache, fileVotes, LOCK, mapCurrentMNVotes, and CGovernanceObjectVoteFile::RemoveVotesFromMasternode().
◆ CountMatchingVotes()
int CGovernanceObject::CountMatchingVotes | ( | vote_signal_enum_t | eVoteSignalIn, |
vote_outcome_enum_t | eVoteOutcomeIn | ||
) | const |
Definition at line 594 of file governance-object.cpp.
References cs, LOCK, mapCurrentMNVotes, and vote_rec_t::mapInstances.
Referenced by GetAbstainCount(), GetNoCount(), and GetYesCount().
◆ GetAbsoluteNoCount()
int CGovernanceObject::GetAbsoluteNoCount | ( | vote_signal_enum_t | eVoteSignalIn | ) | const |
Definition at line 618 of file governance-object.cpp.
References GetNoCount(), and GetYesCount().
Referenced by UpdateSentinelVariables().
◆ GetAbsoluteYesCount()
int CGovernanceObject::GetAbsoluteYesCount | ( | vote_signal_enum_t | eVoteSignalIn | ) | const |
Get specific vote counts for each outcome (funding, validity, etc)
Definition at line 613 of file governance-object.cpp.
References GetNoCount(), and GetYesCount().
Referenced by CSuperblockManager::GetBestSuperblock(), gobject_get(), and UpdateSentinelVariables().
◆ GetAbstainCount()
int CGovernanceObject::GetAbstainCount | ( | vote_signal_enum_t | eVoteSignalIn | ) | const |
Definition at line 633 of file governance-object.cpp.
References CountMatchingVotes(), and VOTE_OUTCOME_ABSTAIN.
Referenced by gobject_get().
◆ GetCollateralHash()
|
inline |
Definition at line 204 of file governance-object.h.
References nCollateralHash.
Referenced by gobject_get().
◆ GetCreationTime()
|
inline |
Definition at line 189 of file governance-object.h.
References nTime.
Referenced by CGovernanceManager::CheckPostponedObjects(), gobject_get(), CGovernanceManager::MasternodeRateCheck(), CGovernanceManager::MasternodeRateUpdate(), and CGovernanceManager::UpdateCachesAndClean().
◆ GetCurrentMNVotes()
bool CGovernanceObject::GetCurrentMNVotes | ( | const COutPoint & | mnCollateralOutpoint, |
vote_rec_t & | voteRecord | ||
) | const |
Definition at line 638 of file governance-object.cpp.
References cs, LOCK, and mapCurrentMNVotes.
Referenced by CGovernanceManager::GetCurrentVotes().
◆ GetData()
void CGovernanceObject::GetData | ( | UniValue & | objResult | ) |
GetData - Example usage:
Decode governance object data into UniValue(VOBJ)
Definition at line 398 of file governance-object.cpp.
References GetDataAsPlainString(), UniValue::read(), and UniValue::VOBJ.
Referenced by GetJSONObject(), and LoadData().
◆ GetDataAsHexString()
std::string CGovernanceObject::GetDataAsHexString | ( | ) | const |
GetData - As
Definition at line 412 of file governance-object.cpp.
References HexStr(), and vchData.
Referenced by GetHash(), gobject_get(), CSuperblock::IsValid(), IsValidLocally(), and CGovernanceManager::UpdateCachesAndClean().
◆ GetDataAsPlainString()
std::string CGovernanceObject::GetDataAsPlainString | ( | ) | const |
Definition at line 417 of file governance-object.cpp.
References vchData.
Referenced by CGovernanceManager::AddGovernanceObject(), CGovernanceTriggerManager::CleanAndRemove(), CSuperblock::CSuperblock(), GetData(), gobject_get(), gobject_submit(), CSuperblockManager::IsSuperblockTriggered(), and LoadData().
◆ GetDeletionTime()
|
inline |
Definition at line 194 of file governance-object.h.
References nDeletionTime.
Referenced by CGovernanceManager::UpdateCachesAndClean().
◆ GetHash()
uint256 CGovernanceObject::GetHash | ( | ) | const |
Definition at line 278 of file governance-object.cpp.
References GetDataAsHexString(), CHashWriter::GetHash(), masternodeOutpoint, nHashParent, nRevision, nTime, PROTOCOL_VERSION, SER_GETHASH, and vchSig.
Referenced by CGovernanceManager::AddCachedTriggers(), CGovernanceManager::AddGovernanceObject(), CGovernanceManager::AddPostponedObject(), CGovernanceManager::CheckOrphanVotes(), CGovernanceManager::CheckPostponedObjects(), gobject_get(), gobject_submit(), IsCollateralValid(), CGovernanceManager::MasternodeRateCheck(), CGovernanceManager::MasternodeRateUpdate(), CZMQPublishRawGovernanceObjectNotifier::NotifyGovernanceObject(), ProcessVote(), Relay(), RemoveInvalidVotes(), SerializationOp(), and CGovernanceManager::UpdateCachesAndClean().
◆ GetJSONObject()
UniValue CGovernanceObject::GetJSONObject | ( | ) |
Return the actual object from the vchData JSON structure.
Returns an empty object on error.
Definition at line 332 of file governance-object.cpp.
References GetData(), UniValue::getValues(), UniValue::isObject(), vchData, and UniValue::VOBJ.
Referenced by CSuperblock::CSuperblock(), and LoadData().
◆ GetMasternodeOutpoint()
|
inline |
Definition at line 209 of file governance-object.h.
References masternodeOutpoint.
Referenced by gobject_get(), CGovernanceManager::MasternodeRateCheck(), and CGovernanceManager::MasternodeRateUpdate().
◆ GetMinCollateralFee()
CAmount CGovernanceObject::GetMinCollateralFee | ( | ) | const |
Definition at line 492 of file governance-object.cpp.
References GOVERNANCE_OBJECT_PROPOSAL, GOVERNANCE_OBJECT_TRIGGER, GOVERNANCE_PROPOSAL_FEE_TX, MAX_MONEY, and nObjectType.
Referenced by IsCollateralValid().
◆ GetNoCount()
int CGovernanceObject::GetNoCount | ( | vote_signal_enum_t | eVoteSignalIn | ) | const |
Definition at line 628 of file governance-object.cpp.
References CountMatchingVotes(), and VOTE_OUTCOME_NO.
Referenced by GetAbsoluteNoCount(), GetAbsoluteYesCount(), and gobject_get().
◆ GetObjectType()
|
inline |
Definition at line 199 of file governance-object.h.
References nObjectType.
Referenced by CGovernanceManager::AddCachedTriggers(), CGovernanceManager::AddGovernanceObject(), CGovernanceManager::CheckPostponedObjects(), CGovernanceTriggerManager::CleanAndRemove(), CSuperblock::CSuperblock(), gobject_check(), gobject_get(), gobject_submit(), gobject_vote_conf(), CGovernanceManager::MasternodeRateCheck(), CGovernanceManager::MasternodeRateUpdate(), CZMQPublishRawGovernanceObjectNotifier::NotifyGovernanceObject(), CGovernanceManager::SyncSingleObjVotes(), CGovernanceManager::UpdateCachesAndClean(), voteraw(), and VoteWithMasternodes().
◆ GetSignatureHash()
uint256 CGovernanceObject::GetSignatureHash | ( | ) | const |
Definition at line 296 of file governance-object.cpp.
References SerializeHash().
Referenced by CheckSignature(), and Sign().
◆ GetVoteFile()
|
inline |
Definition at line 249 of file governance-object.h.
References fileVotes.
Referenced by CGovernanceManager::HaveVoteForHash(), CGovernanceManager::RebuildIndexes(), CGovernanceManager::RequestGovernanceObject(), CGovernanceManager::SerializeVoteForHash(), and CGovernanceManager::SyncSingleObjVotes().
◆ GetYesCount()
int CGovernanceObject::GetYesCount | ( | vote_signal_enum_t | eVoteSignalIn | ) | const |
Definition at line 623 of file governance-object.cpp.
References CountMatchingVotes(), and VOTE_OUTCOME_YES.
Referenced by GetAbsoluteNoCount(), GetAbsoluteYesCount(), and gobject_get().
◆ IsCollateralValid()
bool CGovernanceObject::IsCollateralValid | ( | std::string & | strError, |
bool & | fMissingConfirmations | ||
) | const |
Check the collateral transaction for the budget proposal/finalized budget.
Definition at line 505 of file governance-object.cpp.
References AssertLockHeld(), chainActive, CChain::Contains(), cs_main, GetHash(), GetMinCollateralFee(), GetTransaction(), BCLog::GOBJECT, GOVERNANCE_FEE_CONFIRMATIONS, GOVERNANCE_MIN_RELAY_FEE_CONFIRMATIONS, CChain::Height(), LogPrint, LogPrintf, mapBlockIndex, nCollateralHash, CBlockIndex::nHeight, OP_RETURN, Params(), ScriptToAsmStr(), strprintf, ToByteVector(), and base_blob< BITS >::ToString().
Referenced by CGovernanceManager::CheckPostponedObjects(), and IsValidLocally().
◆ IsSetCachedDelete()
|
inline |
Definition at line 224 of file governance-object.h.
References fCachedDelete.
Referenced by gobject_get(), CGovernanceManager::ProcessVote(), CGovernanceManager::SyncObjects(), CGovernanceManager::SyncSingleObjVotes(), and CGovernanceManager::UpdateCachesAndClean().
◆ IsSetCachedEndorsed()
|
inline |
Definition at line 229 of file governance-object.h.
References fCachedEndorsed.
Referenced by gobject_get().
◆ IsSetCachedFunding()
|
inline |
Definition at line 214 of file governance-object.h.
References fCachedFunding.
Referenced by gobject_get(), and CSuperblockManager::IsSuperblockTriggered().
◆ IsSetCachedValid()
|
inline |
Definition at line 219 of file governance-object.h.
References fCachedValid.
Referenced by gobject_get().
◆ IsSetDirtyCache()
|
inline |
Definition at line 234 of file governance-object.h.
References fDirtyCache.
Referenced by CGovernanceManager::UpdateCachesAndClean().
◆ IsSetExpired()
|
inline |
Definition at line 239 of file governance-object.h.
References fExpired.
Referenced by CGovernanceManager::ProcessVote(), CGovernanceManager::SyncObjects(), CGovernanceManager::SyncSingleObjVotes(), and CGovernanceManager::UpdateCachesAndClean().
◆ IsValidLocally() [1/2]
bool CGovernanceObject::IsValidLocally | ( | std::string & | strError, |
bool | fCheckCollateral | ||
) | const |
Definition at line 430 of file governance-object.cpp.
Referenced by CGovernanceManager::AddGovernanceObject(), CGovernanceManager::CheckPostponedObjects(), gobject_get(), gobject_submit(), and UpdateLocalValidity().
◆ IsValidLocally() [2/2]
bool CGovernanceObject::IsValidLocally | ( | std::string & | strError, |
bool & | fMissingConfirmations, | ||
bool | fCheckCollateral | ||
) | const |
Definition at line 437 of file governance-object.cpp.
References CheckSignature(), deterministicMNManager, fUnparsable, GetDataAsHexString(), CProposalValidator::GetErrorMessages(), GOVERNANCE_OBJECT_PROPOSAL, GOVERNANCE_OBJECT_TRIGGER, IsCollateralValid(), masternodeOutpoint, nObjectType, strprintf, COutPoint::ToStringShort(), and CProposalValidator::Validate().
◆ LoadData()
void CGovernanceObject::LoadData | ( | ) |
LoadData
Attempt to load data from vchData
Definition at line 361 of file governance-object.cpp.
References fUnparsable, UniValue::get_int(), GetData(), GetDataAsPlainString(), GetJSONObject(), BCLog::GOBJECT, LogPrint, LogPrintf, nObjectType, vchData, and UniValue::VOBJ.
Referenced by CGovernanceObject().
◆ PrepareDeletion()
|
inline |
Definition at line 275 of file governance-object.h.
References fCachedDelete, and nDeletionTime.
Referenced by CGovernanceManager::AddCachedTriggers(), CGovernanceTriggerManager::CleanAndRemove(), and CGovernanceManager::UpdateCachesAndClean().
◆ ProcessVote()
bool CGovernanceObject::ProcessVote | ( | CNode * | pfrom, |
const CGovernanceVote & | vote, | ||
CGovernanceException & | exception, | ||
CConnman & | connman | ||
) |
Definition at line 100 of file governance-object.cpp.
References CMasternodeMetaMan::AddGovernanceVote(), CGovernanceManager::AddInvalidVote(), CGovernanceObjectVoteFile::AddVote(), CGovernanceManager::AreRateChecksEnabled(), CGovernanceVoting::ConvertSignalToString(), cs, deterministicMNManager, vote_instance_t::eOutcome, fDirtyCache, fileVotes, GetAdjustedTime(), CGovernanceVote::GetHash(), GetHash(), CGovernanceVote::GetMasternodeOutpoint(), CGovernanceVote::GetOutcome(), CGovernanceVote::GetParentHash(), CGovernanceVote::GetSignal(), CGovernanceVote::GetTimestamp(), BCLog::GOBJECT, governance, GOVERNANCE_EXCEPTION_NONE, GOVERNANCE_EXCEPTION_PERMANENT_ERROR, GOVERNANCE_EXCEPTION_TEMPORARY_ERROR, GOVERNANCE_EXCEPTION_WARNING, GOVERNANCE_OBJECT_PROPOSAL, GOVERNANCE_UPDATE_MIN, CGovernanceObjectVoteFile::HasVote(), CGovernanceVote::IsValid(), LOCK, LogPrint, LogPrintf, mapCurrentMNVotes, vote_rec_t::mapInstances, MAX_SUPPORTED_VOTE_SIGNAL, mmetaman, vote_instance_t::nCreationTime, nObjectType, vote_instance_t::nTime, base_blob< BITS >::ToString(), COutPoint::ToStringShort(), VOTE_SIGNAL_FUNDING, and VOTE_SIGNAL_NONE.
Referenced by CGovernanceManager::CheckOrphanVotes(), and CGovernanceManager::ProcessVote().
◆ Relay()
void CGovernanceObject::Relay | ( | CConnman & | connman | ) |
Definition at line 650 of file governance-object.cpp.
References GetHash(), BCLog::GOBJECT, CMasternodeSync::IsSynced(), LogPrint, masternodeSync, MIN_GOVERNANCE_PEER_PROTO_VERSION, MSG_GOVERNANCE_OBJECT, and CConnman::RelayInv().
Referenced by CGovernanceManager::AddGovernanceObject(), CGovernanceManager::CheckPostponedObjects(), and gobject_submit().
◆ RemoveInvalidVotes()
Definition at line 237 of file governance-object.cpp.
References cs, fDirtyCache, fileVotes, CGovernanceVote::GetHash(), GetHash(), GOVERNANCE_OBJECT_PROPOSAL, LOCK, LogPrintf, mapCurrentMNVotes, nObjectType, CGovernanceObjectVoteFile::RemoveInvalidVotes(), CGovernanceVote::SetTime(), strprintf, and COutPoint::ToString().
◆ SerializationOp()
|
inline |
Definition at line 313 of file governance-object.h.
References fExpired, fileVotes, GetHash(), CGovernanceObjectVoteFile::GetVoteCount(), BCLog::GOBJECT, LogPrint, mapCurrentMNVotes, masternodeOutpoint, nCollateralHash, nDeletionTime, nHashParent, nObjectType, nRevision, nTime, READWRITE, SER_DISK, SER_GETHASH, vchData, and vchSig.
◆ SetExpired()
|
inline |
Definition at line 244 of file governance-object.h.
References fExpired.
Referenced by CGovernanceTriggerManager::CleanAndRemove().
◆ SetMasternodeOutpoint()
void CGovernanceObject::SetMasternodeOutpoint | ( | const COutPoint & | outpoint | ) |
Definition at line 301 of file governance-object.cpp.
References masternodeOutpoint.
Referenced by gobject_submit().
◆ Sign()
bool CGovernanceObject::Sign | ( | const CBLSSecretKey & | key | ) |
Definition at line 306 of file governance-object.cpp.
References CBLSWrapper< ImplType, _SerSize, C >::GetBuf(), GetSignatureHash(), CBLSWrapper< ImplType, _SerSize, C >::IsValid(), CBLSSecretKey::Sign(), and vchSig.
Referenced by gobject_submit().
◆ UpdateLocalValidity()
void CGovernanceObject::UpdateLocalValidity | ( | ) |
Definition at line 422 of file governance-object.cpp.
References cs_main, fCachedLocalValidity, IsValidLocally(), LOCK, and strLocalValidityError.
Referenced by CGovernanceManager::UpdateCachesAndClean().
◆ UpdateSentinelVariables()
void CGovernanceObject::UpdateSentinelVariables | ( | ) |
Definition at line 662 of file governance-object.cpp.
References deterministicMNManager, fCachedDelete, fCachedEndorsed, fCachedFunding, fCachedValid, fDirtyCache, GetAbsoluteNoCount(), GetAbsoluteYesCount(), GetAdjustedTime(), nDeletionTime, Params(), VOTE_SIGNAL_DELETE, VOTE_SIGNAL_ENDORSED, VOTE_SIGNAL_FUNDING, and VOTE_SIGNAL_VALID.
Referenced by CGovernanceManager::AddGovernanceObject(), CSuperblockManager::IsSuperblockTriggered(), and CGovernanceManager::UpdateCachesAndClean().
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
CGovernanceObject::ADD_SERIALIZE_METHODS |
Definition at line 310 of file governance-object.h.
◆ cs
|
mutableprivate |
critical section to protect the inner data structures
Definition at line 120 of file governance-object.h.
Referenced by ClearMasternodeVotes(), CountMatchingVotes(), GetCurrentMNVotes(), ProcessVote(), and RemoveInvalidVotes().
◆ fCachedDelete
|
private |
true == minimum network support has been reached saying this object should be deleted from the system entirely
Definition at line 160 of file governance-object.h.
Referenced by IsSetCachedDelete(), PrepareDeletion(), and UpdateSentinelVariables().
◆ fCachedEndorsed
|
private |
true == minimum network support has been reached flagging this object as endorsed by an elected representative body (e.g.
business review board / technecial review board /etc)
Definition at line 165 of file governance-object.h.
Referenced by IsSetCachedEndorsed(), and UpdateSentinelVariables().
◆ fCachedFunding
|
private |
true == minimum network support has been reached for this object to be funded (doesn't mean it will for sure though)
Definition at line 154 of file governance-object.h.
Referenced by IsSetCachedFunding(), and UpdateSentinelVariables().
◆ fCachedLocalValidity
|
private |
is valid by blockchain
Definition at line 148 of file governance-object.h.
Referenced by UpdateLocalValidity().
◆ fCachedValid
|
private |
true == minimum network has been reached flagging this object as a valid and understood governance object (e.g, the serialized data is correct format, etc)
Definition at line 157 of file governance-object.h.
Referenced by IsSetCachedValid(), and UpdateSentinelVariables().
◆ fDirtyCache
|
private |
object was updated and cached values should be updated soon
Definition at line 168 of file governance-object.h.
Referenced by ClearMasternodeVotes(), IsSetDirtyCache(), ProcessVote(), RemoveInvalidVotes(), and UpdateSentinelVariables().
◆ fExpired
|
private |
Object is no longer of interest.
Definition at line 171 of file governance-object.h.
Referenced by IsSetExpired(), SerializationOp(), and SetExpired().
◆ fileVotes
|
private |
Definition at line 178 of file governance-object.h.
Referenced by ClearMasternodeVotes(), GetVoteFile(), ProcessVote(), RemoveInvalidVotes(), and SerializationOp().
◆ fUnparsable
|
private |
Failed to parse object data.
Definition at line 174 of file governance-object.h.
Referenced by IsValidLocally(), and LoadData().
◆ mapCurrentMNVotes
|
private |
Definition at line 176 of file governance-object.h.
Referenced by ClearMasternodeVotes(), CountMatchingVotes(), GetCurrentMNVotes(), ProcessVote(), RemoveInvalidVotes(), and SerializationOp().
◆ masternodeOutpoint
|
private |
Masternode info for signed objects.
Definition at line 144 of file governance-object.h.
Referenced by GetHash(), GetMasternodeOutpoint(), IsValidLocally(), SerializationOp(), and SetMasternodeOutpoint().
◆ nCollateralHash
|
private |
fee-tx
Definition at line 138 of file governance-object.h.
Referenced by GetCollateralHash(), IsCollateralValid(), and SerializationOp().
◆ nDeletionTime
|
private |
time this object was marked for deletion
Definition at line 135 of file governance-object.h.
Referenced by GetDeletionTime(), PrepareDeletion(), SerializationOp(), and UpdateSentinelVariables().
◆ nHashParent
|
private |
parent object, 0 is root
Definition at line 126 of file governance-object.h.
Referenced by GetHash(), and SerializationOp().
◆ nObjectType
|
private |
Object typecode.
Definition at line 123 of file governance-object.h.
Referenced by GetMinCollateralFee(), GetObjectType(), IsValidLocally(), LoadData(), ProcessVote(), RemoveInvalidVotes(), and SerializationOp().
◆ nRevision
|
private |
object revision in the system
Definition at line 129 of file governance-object.h.
Referenced by GetHash(), and SerializationOp().
◆ nTime
|
private |
time this object was created
Definition at line 132 of file governance-object.h.
Referenced by GetCreationTime(), GetHash(), and SerializationOp().
◆ strLocalValidityError
|
private |
Definition at line 149 of file governance-object.h.
Referenced by UpdateLocalValidity().
◆ vchData
|
private |
Data field - can be used for anything.
Definition at line 141 of file governance-object.h.
Referenced by GetDataAsHexString(), GetDataAsPlainString(), GetJSONObject(), LoadData(), and SerializationOp().
◆ vchSig
|
private |
Definition at line 145 of file governance-object.h.
Referenced by CheckSignature(), GetHash(), SerializationOp(), and Sign().
The documentation for this class was generated from the following files:
- src/governance/governance-object.h
- src/governance/governance-object.cpp