PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | List of all members
CActiveMasternode Class Reference

#include <activemasternode.h>

Collaboration diagram for CActiveMasternode:
[legend]

Public Member Functions

 CActiveMasternode ()=default
 
void ManageStatus ()
 Manage status of main Masternode. More...
 
void ResetStatus ()
 
std::string GetStatusMessage () const
 
int GetStatus () const
 
bool SendMasternodePing (std::string &errorMessage)
 Ping Masternode. More...
 
bool EnableHotColdMasterNode (CTxIn &vin, CService &addr)
 Enable cold wallet mode (run a Masternode with no funds) More...
 
void GetKeys (CKey &privKeyMasternode, CPubKey &pubKeyMasternode) const
 

Public Attributes

CPubKey pubKeyMasternode
 
CKey privKeyMasternode
 
Optional< CTxInvin {nullopt}
 
CService service
 

Private Attributes

int status {ACTIVE_MASTERNODE_INITIAL}
 
std::string notCapableReason
 

Detailed Description

Definition at line 83 of file activemasternode.h.

Constructor & Destructor Documentation

◆ CActiveMasternode()

CActiveMasternode::CActiveMasternode ( )
default

Member Function Documentation

◆ EnableHotColdMasterNode()

bool CActiveMasternode::EnableHotColdMasterNode ( CTxIn vin,
CService addr 
)

Enable cold wallet mode (run a Masternode with no funds)

Definition at line 463 of file activemasternode.cpp.

Here is the caller graph for this function:

◆ GetKeys()

void CActiveMasternode::GetKeys ( CKey privKeyMasternode,
CPubKey pubKeyMasternode 
) const

Definition at line 478 of file activemasternode.cpp.

Here is the call graph for this function:

◆ GetStatus()

int CActiveMasternode::GetStatus ( ) const
inline

Definition at line 105 of file activemasternode.h.

◆ GetStatusMessage()

std::string CActiveMasternode::GetStatusMessage ( ) const

Definition at line 387 of file activemasternode.cpp.

◆ ManageStatus()

void CActiveMasternode::ManageStatus ( )

Manage status of main Masternode.

Todo:
: Legacy masternodes - remove after enforcement

Definition at line 306 of file activemasternode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResetStatus()

void CActiveMasternode::ResetStatus ( )

Definition at line 381 of file activemasternode.cpp.

Here is the call graph for this function:

◆ SendMasternodePing()

bool CActiveMasternode::SendMasternodePing ( std::string &  errorMessage)

Ping Masternode.

Todo:
: check why are we double setting the last ping here..

Definition at line 403 of file activemasternode.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ notCapableReason

std::string CActiveMasternode::notCapableReason
private

Definition at line 87 of file activemasternode.h.

◆ privKeyMasternode

CKey CActiveMasternode::privKeyMasternode

Definition at line 95 of file activemasternode.h.

◆ pubKeyMasternode

CPubKey CActiveMasternode::pubKeyMasternode

Definition at line 94 of file activemasternode.h.

◆ service

CService CActiveMasternode::service

Definition at line 99 of file activemasternode.h.

◆ status

int CActiveMasternode::status {ACTIVE_MASTERNODE_INITIAL}
private

Definition at line 86 of file activemasternode.h.

◆ vin

Optional<CTxIn> CActiveMasternode::vin {nullopt}

Definition at line 98 of file activemasternode.h.


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