Dash Core  0.12.2.1
P2P Digital Currency
CActiveMasternode Class Reference

#include <activemasternode.h>

Public Types

enum  masternode_type_enum_t { MASTERNODE_UNKNOWN = 0, MASTERNODE_REMOTE = 1, MASTERNODE_LOCAL = 2 }
 

Public Member Functions

 CActiveMasternode ()
 
void ManageState (CConnman &connman)
 Manage state of active Masternode. More...
 
std::string GetStateString () const
 
std::string GetStatus () const
 
std::string GetTypeString () const
 
bool UpdateSentinelPing (int version)
 

Public Attributes

CPubKey pubKeyMasternode
 
CKey keyMasternode
 
COutPoint outpoint
 
CService service
 
int nState
 
std::string strNotCapableReason
 

Private Member Functions

bool SendMasternodePing (CConnman &connman)
 Ping Masternode. More...
 
void ManageStateInitial (CConnman &connman)
 
void ManageStateRemote ()
 
void ManageStateLocal (CConnman &connman)
 

Private Attributes

CCriticalSection cs
 
masternode_type_enum_t eType
 
bool fPingerEnabled
 
int64_t nSentinelPingTime
 
uint32_t nSentinelVersion
 

Detailed Description

Definition at line 23 of file activemasternode.h.

Member Enumeration Documentation

◆ masternode_type_enum_t

Enumerator
MASTERNODE_UNKNOWN 
MASTERNODE_REMOTE 
MASTERNODE_LOCAL 

Definition at line 26 of file activemasternode.h.

Constructor & Destructor Documentation

◆ CActiveMasternode()

CActiveMasternode::CActiveMasternode ( )
inline

Definition at line 60 of file activemasternode.h.

Member Function Documentation

◆ GetStateString()

std::string CActiveMasternode::GetStateString ( ) const

◆ GetStatus()

std::string CActiveMasternode::GetStatus ( ) const

◆ GetTypeString()

std::string CActiveMasternode::GetTypeString ( ) const

◆ ManageState()

void CActiveMasternode::ManageState ( CConnman connman)

◆ ManageStateInitial()

void CActiveMasternode::ManageStateInitial ( CConnman connman)
private

Definition at line 141 of file activemasternode.cpp.

Referenced by ManageState().

◆ ManageStateLocal()

void CActiveMasternode::ManageStateLocal ( CConnman connman)
private

Definition at line 277 of file activemasternode.cpp.

Referenced by ManageState().

◆ ManageStateRemote()

void CActiveMasternode::ManageStateRemote ( )
private

Definition at line 236 of file activemasternode.cpp.

Referenced by ManageState().

◆ SendMasternodePing()

bool CActiveMasternode::SendMasternodePing ( CConnman connman)
private

Ping Masternode.

Definition at line 96 of file activemasternode.cpp.

Referenced by ManageState().

◆ UpdateSentinelPing()

bool CActiveMasternode::UpdateSentinelPing ( int  version)

Definition at line 133 of file activemasternode.cpp.

Referenced by sentinelping().

Member Data Documentation

◆ cs

CCriticalSection CActiveMasternode::cs
mutableprivate

Definition at line 34 of file activemasternode.h.

◆ eType

masternode_type_enum_t CActiveMasternode::eType
private

Definition at line 36 of file activemasternode.h.

Referenced by GetTypeString(), ManageState(), and ManageStateInitial().

◆ fPingerEnabled

bool CActiveMasternode::fPingerEnabled
private

◆ keyMasternode

◆ nSentinelPingTime

int64_t CActiveMasternode::nSentinelPingTime
private

Definition at line 44 of file activemasternode.h.

Referenced by SendMasternodePing(), and UpdateSentinelPing().

◆ nSentinelVersion

uint32_t CActiveMasternode::nSentinelVersion
private

Definition at line 45 of file activemasternode.h.

Referenced by SendMasternodePing(), and UpdateSentinelPing().

◆ nState

◆ outpoint

◆ pubKeyMasternode

◆ service

CService CActiveMasternode::service

◆ strNotCapableReason

std::string CActiveMasternode::strNotCapableReason

The documentation for this class was generated from the following files: