Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <deterministicmns.h>
Public Member Functions | |
CDeterministicMNState () | |
CDeterministicMNState (const CProRegTx &proTx) | |
template<typename Stream > | |
CDeterministicMNState (deserialize_type, Stream &s) | |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
void | ResetOperatorFields () |
void | BanIfNotBanned (int height) |
void | UpdateConfirmedHash (const uint256 &_proTxHash, const uint256 &_confirmedHash) |
std::string | ToString () const |
void | ToJson (UniValue &obj) const |
Public Attributes | |
int | nRegisteredHeight {-1} |
int | nLastPaidHeight {0} |
int | nPoSePenalty {0} |
int | nPoSeRevivedHeight {-1} |
int | nPoSeBanHeight {-1} |
uint16_t | nRevocationReason {CProUpRevTx::REASON_NOT_SPECIFIED} |
uint256 | confirmedHash |
uint256 | confirmedHashWithProRegTxHash |
CKeyID | keyIDOwner |
CBLSLazyPublicKey | pubKeyOperator |
CKeyID | keyIDVoting |
CService | addr |
CScript | scriptPayout |
CScript | scriptOperatorPayout |
ADD_SERIALIZE_METHODS | |
Detailed Description
Definition at line 31 of file deterministicmns.h.
Constructor & Destructor Documentation
◆ CDeterministicMNState() [1/3]
|
inline |
Definition at line 55 of file deterministicmns.h.
◆ CDeterministicMNState() [2/3]
|
inlineexplicit |
Definition at line 56 of file deterministicmns.h.
References CProRegTx::addr, addr, CProRegTx::keyIDOwner, keyIDOwner, CProRegTx::keyIDVoting, keyIDVoting, CProRegTx::pubKeyOperator, pubKeyOperator, CProRegTx::scriptPayout, scriptPayout, and CBLSLazyWrapper< BLSObject >::Set().
◆ CDeterministicMNState() [3/3]
|
inline |
Definition at line 65 of file deterministicmns.h.
Member Function Documentation
◆ BanIfNotBanned()
|
inline |
Definition at line 98 of file deterministicmns.h.
References nPoSeBanHeight.
◆ ResetOperatorFields()
|
inline |
Definition at line 91 of file deterministicmns.h.
References addr, nRevocationReason, pubKeyOperator, CProUpRevTx::REASON_NOT_SPECIFIED, scriptOperatorPayout, and CBLSLazyWrapper< BLSObject >::Set().
◆ SerializationOp()
|
inline |
Definition at line 73 of file deterministicmns.h.
References addr, confirmedHash, confirmedHashWithProRegTxHash, keyIDOwner, keyIDVoting, nLastPaidHeight, nPoSeBanHeight, nPoSePenalty, nPoSeRevivedHeight, nRegisteredHeight, nRevocationReason, pubKeyOperator, READWRITE, scriptOperatorPayout, and scriptPayout.
◆ ToJson()
void CDeterministicMNState::ToJson | ( | UniValue & | obj | ) | const |
Definition at line 44 of file deterministicmns.cpp.
References addr, UniValue::clear(), EncodeDestination(), ExtractDestination(), CBLSLazyWrapper< BLSObject >::Get(), keyIDOwner, keyIDVoting, nLastPaidHeight, nPoSeBanHeight, nPoSePenalty, nPoSeRevivedHeight, nRegisteredHeight, nRevocationReason, Pair(), pubKeyOperator, UniValue::push_back(), scriptOperatorPayout, scriptPayout, UniValue::setObject(), CBLSWrapper< ImplType, _SerSize, C >::ToString(), and CService::ToStringIPPort().
◆ ToString()
std::string CDeterministicMNState::ToString | ( | ) | const |
Definition at line 26 of file deterministicmns.cpp.
References addr, EncodeDestination(), ExtractDestination(), CBLSLazyWrapper< BLSObject >::Get(), keyIDOwner, keyIDVoting, nLastPaidHeight, nPoSeBanHeight, nPoSePenalty, nPoSeRevivedHeight, nRegisteredHeight, nRevocationReason, pubKeyOperator, scriptOperatorPayout, scriptPayout, strprintf, CBLSWrapper< ImplType, _SerSize, C >::ToString(), and CService::ToStringIPPort().
◆ UpdateConfirmedHash()
|
inline |
Definition at line 104 of file deterministicmns.h.
References base_blob< BITS >::begin(), confirmedHash, confirmedHashWithProRegTxHash, CSHA256::Finalize(), base_blob< BITS >::size(), and CSHA256::Write().
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
CDeterministicMNState::ADD_SERIALIZE_METHODS |
Definition at line 70 of file deterministicmns.h.
◆ addr
CService CDeterministicMNState::addr |
Definition at line 50 of file deterministicmns.h.
Referenced by CDeterministicMNState(), ResetOperatorFields(), SerializationOp(), ToJson(), and ToString().
◆ confirmedHash
uint256 CDeterministicMNState::confirmedHash |
Definition at line 42 of file deterministicmns.h.
Referenced by SerializationOp(), and UpdateConfirmedHash().
◆ confirmedHashWithProRegTxHash
uint256 CDeterministicMNState::confirmedHashWithProRegTxHash |
Definition at line 45 of file deterministicmns.h.
Referenced by SerializationOp(), and UpdateConfirmedHash().
◆ keyIDOwner
CKeyID CDeterministicMNState::keyIDOwner |
Definition at line 47 of file deterministicmns.h.
Referenced by CDeterministicMNState(), SerializationOp(), ToJson(), and ToString().
◆ keyIDVoting
CKeyID CDeterministicMNState::keyIDVoting |
Definition at line 49 of file deterministicmns.h.
Referenced by CDeterministicMNState(), SerializationOp(), ToJson(), and ToString().
◆ nLastPaidHeight
int CDeterministicMNState::nLastPaidHeight {0} |
Definition at line 35 of file deterministicmns.h.
Referenced by SerializationOp(), ToJson(), and ToString().
◆ nPoSeBanHeight
int CDeterministicMNState::nPoSeBanHeight {-1} |
Definition at line 38 of file deterministicmns.h.
Referenced by BanIfNotBanned(), CDeterministicMNList::IsMNPoSeBanned(), SerializationOp(), ToJson(), and ToString().
◆ nPoSePenalty
int CDeterministicMNState::nPoSePenalty {0} |
Definition at line 36 of file deterministicmns.h.
Referenced by SerializationOp(), ToJson(), and ToString().
◆ nPoSeRevivedHeight
int CDeterministicMNState::nPoSeRevivedHeight {-1} |
Definition at line 37 of file deterministicmns.h.
Referenced by SerializationOp(), ToJson(), and ToString().
◆ nRegisteredHeight
int CDeterministicMNState::nRegisteredHeight {-1} |
Definition at line 34 of file deterministicmns.h.
Referenced by SerializationOp(), ToJson(), and ToString().
◆ nRevocationReason
uint16_t CDeterministicMNState::nRevocationReason {CProUpRevTx::REASON_NOT_SPECIFIED} |
Definition at line 39 of file deterministicmns.h.
Referenced by ResetOperatorFields(), SerializationOp(), ToJson(), and ToString().
◆ pubKeyOperator
CBLSLazyPublicKey CDeterministicMNState::pubKeyOperator |
Definition at line 48 of file deterministicmns.h.
Referenced by CDeterministicMNState(), ResetOperatorFields(), SerializationOp(), ToJson(), and ToString().
◆ scriptOperatorPayout
CScript CDeterministicMNState::scriptOperatorPayout |
Definition at line 52 of file deterministicmns.h.
Referenced by ResetOperatorFields(), SerializationOp(), ToJson(), and ToString().
◆ scriptPayout
CScript CDeterministicMNState::scriptPayout |
Definition at line 51 of file deterministicmns.h.
Referenced by CDeterministicMNState(), SerializationOp(), ToJson(), and ToString().
The documentation for this class was generated from the following files:
- src/evo/deterministicmns.h
- src/evo/deterministicmns.cpp