![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#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 |
Definition at line 23 of file activemasternode.h.
Enumerator | |
---|---|
MASTERNODE_UNKNOWN | |
MASTERNODE_REMOTE | |
MASTERNODE_LOCAL |
Definition at line 26 of file activemasternode.h.
|
inline |
Definition at line 60 of file activemasternode.h.
std::string CActiveMasternode::GetStateString | ( | ) | const |
Definition at line 52 of file activemasternode.cpp.
Referenced by ManageState(), ManageStateInitial(), ManageStateLocal(), ManageStateRemote(), and SendMasternodePing().
std::string CActiveMasternode::GetStatus | ( | ) | const |
Definition at line 64 of file activemasternode.cpp.
Referenced by ManageState(), ManageStateInitial(), ManageStateLocal(), ManageStateRemote(), and masternode().
std::string CActiveMasternode::GetTypeString | ( | ) | const |
Definition at line 76 of file activemasternode.cpp.
Referenced by ManageState(), ManageStateInitial(), ManageStateLocal(), and ManageStateRemote().
void CActiveMasternode::ManageState | ( | CConnman & | connman | ) |
Manage state of active Masternode.
Definition at line 16 of file activemasternode.cpp.
Referenced by CMasternodeMan::CheckMnbAndUpdateMasternodeList(), masternode(), CMasternodeSync::SwitchToNextAsset(), ThreadCheckPrivateSend(), and CMasternode::UpdateFromNewBroadcast().
|
private |
Definition at line 141 of file activemasternode.cpp.
Referenced by ManageState().
|
private |
Definition at line 277 of file activemasternode.cpp.
Referenced by ManageState().
|
private |
Definition at line 236 of file activemasternode.cpp.
Referenced by ManageState().
|
private |
bool CActiveMasternode::UpdateSentinelPing | ( | int | version | ) |
Definition at line 133 of file activemasternode.cpp.
Referenced by sentinelping().
|
mutableprivate |
Definition at line 34 of file activemasternode.h.
|
private |
Definition at line 36 of file activemasternode.h.
Referenced by GetTypeString(), ManageState(), and ManageStateInitial().
|
private |
Definition at line 38 of file activemasternode.h.
Referenced by ManageState(), ManageStateInitial(), ManageStateLocal(), ManageStateRemote(), and SendMasternodePing().
CKey CActiveMasternode::keyMasternode |
Definition at line 50 of file activemasternode.h.
Referenced by AppInit2(), gobject(), ManageStateLocal(), CMasternodeMan::ProcessVerifyReply(), SendMasternodePing(), CMasternodeMan::SendVerifyReply(), CMasternodePaymentVote::Sign(), CTxLockVote::Sign(), CDarksendQueue::Sign(), and CDarksendBroadcastTx::Sign().
|
private |
Definition at line 44 of file activemasternode.h.
Referenced by SendMasternodePing(), and UpdateSentinelPing().
|
private |
Definition at line 45 of file activemasternode.h.
Referenced by SendMasternodePing(), and UpdateSentinelPing().
int CActiveMasternode::nState |
Definition at line 56 of file activemasternode.h.
Referenced by GetStateString(), GetStatus(), ManageState(), ManageStateInitial(), ManageStateLocal(), ManageStateRemote(), masternode(), and SendMasternodePing().
COutPoint CActiveMasternode::outpoint |
Definition at line 53 of file activemasternode.h.
Referenced by CPrivateSendServer::CheckForCompleteQueue(), CMasternodeBroadcast::CheckOutpoint(), CPrivateSendServer::CommitFinalTransaction(), CPrivateSendServer::CreateNewSession(), CMasternodeMan::DoFullVerificationStep(), gobject(), ManageStateInitial(), ManageStateLocal(), ManageStateRemote(), masternode(), CMasternodePayments::ProcessBlock(), CPrivateSendServer::ProcessMessage(), CMasternodeMan::ProcessVerifyReply(), SendMasternodePing(), and CInstantSend::Vote().
CPubKey CActiveMasternode::pubKeyMasternode |
Definition at line 49 of file activemasternode.h.
Referenced by AppInit2(), CMasternode::Check(), CMasternodeMan::CheckMnbAndUpdateMasternodeList(), CMasternodeBroadcast::CheckOutpoint(), gobject(), ManageStateLocal(), ManageStateRemote(), CMasternodeMan::ProcessVerifyReply(), SendMasternodePing(), CMasternodeMan::SendVerifyReply(), CMasternodePaymentVote::Sign(), CTxLockVote::Sign(), CDarksendQueue::Sign(), CDarksendBroadcastTx::Sign(), CMasternodeBroadcast::Update(), and CMasternode::UpdateFromNewBroadcast().
CService CActiveMasternode::service |
Definition at line 54 of file activemasternode.h.
Referenced by ManageStateInitial(), ManageStateLocal(), ManageStateRemote(), masternode(), and CMasternodeMan::SendVerifyReply().
std::string CActiveMasternode::strNotCapableReason |
Definition at line 57 of file activemasternode.h.
Referenced by GetStatus(), ManageStateInitial(), ManageStateLocal(), ManageStateRemote(), and SendMasternodePing().