Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

CDeterministicMNState Class Reference

#include <deterministicmns.h>

+ Collaboration diagram for CDeterministicMNState:

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]

CDeterministicMNState::CDeterministicMNState ( )
inline

Definition at line 55 of file deterministicmns.h.

◆ CDeterministicMNState() [2/3]

CDeterministicMNState::CDeterministicMNState ( const CProRegTx proTx)
inlineexplicit

◆ CDeterministicMNState() [3/3]

template<typename Stream >
CDeterministicMNState::CDeterministicMNState ( deserialize_type  ,
Stream &  s 
)
inline

Definition at line 65 of file deterministicmns.h.

Member Function Documentation

◆ BanIfNotBanned()

void CDeterministicMNState::BanIfNotBanned ( int  height)
inline

Definition at line 98 of file deterministicmns.h.

References nPoSeBanHeight.

◆ ResetOperatorFields()

void CDeterministicMNState::ResetOperatorFields ( )
inline

◆ SerializationOp()

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

◆ ToJson()

◆ ToString()

◆ UpdateConfirmedHash()

void CDeterministicMNState::UpdateConfirmedHash ( const uint256 _proTxHash,
const uint256 _confirmedHash 
)
inline

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CDeterministicMNState::ADD_SERIALIZE_METHODS

Definition at line 70 of file deterministicmns.h.

◆ addr

CService CDeterministicMNState::addr

◆ 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}

◆ 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

◆ 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:
Released under the MIT license