Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

CDeterministicMNStateDiff Class Reference

#include <deterministicmns.h>

+ Collaboration diagram for CDeterministicMNStateDiff:

Public Types

enum  Field : uint32_t {
  Field_nRegisteredHeight = 0x0001, Field_nLastPaidHeight = 0x0002, Field_nPoSePenalty = 0x0004, Field_nPoSeRevivedHeight = 0x0008,
  Field_nPoSeBanHeight = 0x0010, Field_nRevocationReason = 0x0020, Field_confirmedHash = 0x0040, Field_confirmedHashWithProRegTxHash = 0x0080,
  Field_keyIDOwner = 0x0100, Field_pubKeyOperator = 0x0200, Field_keyIDVoting = 0x0400, Field_addr = 0x0800,
  Field_scriptPayout = 0x1000, Field_scriptOperatorPayout = 0x2000
}
 

Public Member Functions

 CDeterministicMNStateDiff ()
 
 CDeterministicMNStateDiff (const CDeterministicMNState &a, const CDeterministicMNState &b)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 
void ApplyToState (CDeterministicMNState &target) const
 

Public Attributes

uint32_t fields {0}
 
CDeterministicMNState state
 
 ADD_SERIALIZE_METHODS
 

Detailed Description

Definition at line 120 of file deterministicmns.h.

Member Enumeration Documentation

◆ Field

Enumerator
Field_nRegisteredHeight 
Field_nLastPaidHeight 
Field_nPoSePenalty 
Field_nPoSeRevivedHeight 
Field_nPoSeBanHeight 
Field_nRevocationReason 
Field_confirmedHash 
Field_confirmedHashWithProRegTxHash 
Field_keyIDOwner 
Field_pubKeyOperator 
Field_keyIDVoting 
Field_addr 
Field_scriptPayout 
Field_scriptOperatorPayout 

Definition at line 123 of file deterministicmns.h.

Constructor & Destructor Documentation

◆ CDeterministicMNStateDiff() [1/2]

CDeterministicMNStateDiff::CDeterministicMNStateDiff ( )
inline

Definition at line 162 of file deterministicmns.h.

◆ CDeterministicMNStateDiff() [2/2]

CDeterministicMNStateDiff::CDeterministicMNStateDiff ( const CDeterministicMNState a,
const CDeterministicMNState b 
)
inline

Definition at line 163 of file deterministicmns.h.

References DMN_STATE_DIFF_ALL_FIELDS.

Member Function Documentation

◆ ApplyToState()

void CDeterministicMNStateDiff::ApplyToState ( CDeterministicMNState target) const
inline

Definition at line 181 of file deterministicmns.h.

References DMN_STATE_DIFF_ALL_FIELDS.

Referenced by CDeterministicMNList::UpdateMN().

◆ SerializationOp()

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

Definition at line 173 of file deterministicmns.h.

References DMN_STATE_DIFF_ALL_FIELDS, fields, READWRITE, and VARINT.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CDeterministicMNStateDiff::ADD_SERIALIZE_METHODS

Definition at line 170 of file deterministicmns.h.

◆ fields

uint32_t CDeterministicMNStateDiff::fields {0}

Definition at line 157 of file deterministicmns.h.

Referenced by CDeterministicMNList::BuildDiff(), and SerializationOp().

◆ state

CDeterministicMNState CDeterministicMNStateDiff::state

Definition at line 159 of file deterministicmns.h.


The documentation for this class was generated from the following file:
Released under the MIT license