![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <governance-classes.h>
Public Member Functions | |
CSuperblock () | |
CSuperblock (uint256 &nHash) | |
int | GetStatus () |
void | SetStatus (int nStatusIn) |
bool | IsExecuted () |
void | SetExecuted () |
CGovernanceObject * | GetGovernanceObject () |
int | GetBlockStart () |
int | CountPayments () |
bool | GetPayment (int nPaymentIndex, CGovernancePayment &paymentRet) |
CAmount | GetPaymentsTotalAmount () |
bool | IsValid (const CTransaction &txNew, int nBlockHeight, CAmount blockReward) |
![]() | |
virtual uint256 | GetHash ()=0 |
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 uint256 & | GetCollateralHash () const |
const CTxIn & | GetMasternodeVin () const |
bool | IsSetCachedFunding () const |
bool | IsSetCachedValid () const |
bool | IsSetCachedDelete () const |
bool | IsSetCachedEndorsed () const |
bool | IsSetDirtyCache () const |
bool | IsSetExpired () const |
void | InvalidateVoteCache () |
CGovernanceObjectVoteFile & | GetVoteFile () |
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) |
CGovernanceObject & | operator= (CGovernanceObject from) |
Static Public Member Functions | |
static bool | IsValidBlockHeight (int nBlockHeight) |
static CAmount | GetPaymentsLimit (int nBlockHeight) |
Private Member Functions | |
void | ParsePaymentSchedule (std::string &strPaymentAddresses, std::string &strPaymentAmounts) |
Private Attributes | |
uint256 | nGovObjHash |
int | nEpochStart |
int | nStatus |
std::vector< CGovernancePayment > | vecPayments |
Additional Inherited Members | |
![]() | |
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_mcache_t |
![]() | |
ADD_SERIALIZE_METHODS | |
Trigger : Superblock
object structure: { "governance_object_id" : last_id, "type" : govtypes.trigger, "subtype" : "superblock", "superblock_name" : superblock_name, "start_epoch" : start_epoch, "payment_addresses" : "addr1|addr2|addr3", "payment_amounts" : "amount1|amount2|amount3" }
Definition at line 146 of file governance-classes.h.
CSuperblock::CSuperblock | ( | ) |
Definition at line 465 of file governance-classes.cpp.
CSuperblock::CSuperblock | ( | uint256 & | nHash | ) |
Definition at line 473 of file governance-classes.cpp.
|
inline |
Definition at line 202 of file governance-classes.h.
Referenced by GetPaymentsTotalAmount(), and IsValid().
|
inline |
Definition at line 180 of file governance-classes.h.
|
inline |
Definition at line 173 of file governance-classes.h.
Referenced by CSuperblock(), and IsValid().
bool CSuperblock::GetPayment | ( | int | nPaymentIndex, |
CGovernancePayment & | paymentRet | ||
) |
Definition at line 613 of file governance-classes.cpp.
Referenced by IsValid().
|
static |
Definition at line 527 of file governance-classes.cpp.
Referenced by getsuperblockbudget(), IsBlockValueValid(), and IsValid().
CAmount CSuperblock::GetPaymentsTotalAmount | ( | ) |
Definition at line 623 of file governance-classes.cpp.
Referenced by IsValid().
|
inline |
Definition at line 165 of file governance-classes.h.
|
inline |
Definition at line 169 of file governance-classes.h.
bool CSuperblock::IsValid | ( | const CTransaction & | txNew, |
int | nBlockHeight, | ||
CAmount | blockReward | ||
) |
Is Transaction Valid
Definition at line 641 of file governance-classes.cpp.
|
static |
Is Valid Superblock Height
Definition at line 520 of file governance-classes.cpp.
Referenced by CSuperblockManager::GetBestSuperblock(), GetPaymentsLimit(), IsBlockValueValid(), CSuperblockManager::IsSuperblockTriggered(), and IsValid().
|
private |
Definition at line 545 of file governance-classes.cpp.
Referenced by CSuperblock().
|
inline |
Definition at line 171 of file governance-classes.h.
|
inline |
Definition at line 166 of file governance-classes.h.
|
private |
Definition at line 151 of file governance-classes.h.
Referenced by CSuperblock(), and GetBlockStart().
|
private |
Definition at line 149 of file governance-classes.h.
Referenced by GetGovernanceObject().
|
private |
Definition at line 152 of file governance-classes.h.
Referenced by GetStatus(), IsExecuted(), SetExecuted(), and SetStatus().
|
private |
Definition at line 153 of file governance-classes.h.
Referenced by CountPayments(), CSuperblock(), GetPayment(), GetPaymentsTotalAmount(), and ParsePaymentSchedule().