Dash Core  0.12.2.1
P2P Digital Currency
CSporkManager Class Reference

#include <spork.h>

Public Member Functions

 CSporkManager ()
 
void ProcessSpork (CNode *pfrom, std::string &strCommand, CDataStream &vRecv, CConnman &connman)
 
void ExecuteSpork (int nSporkID, int nValue)
 
bool UpdateSpork (int nSporkID, int64_t nValue, CConnman &connman)
 
bool IsSporkActive (int nSporkID)
 
int64_t GetSporkValue (int nSporkID)
 
int GetSporkIDByName (std::string strName)
 
std::string GetSporkNameByID (int nSporkID)
 
bool SetPrivKey (std::string strPrivKey)
 

Private Attributes

std::vector< unsigned char > vchSig
 
std::string strMasterPrivKey
 
std::map< int, CSporkMessagemapSporksActive
 

Detailed Description

Definition at line 98 of file spork.h.

Constructor & Destructor Documentation

◆ CSporkManager()

CSporkManager::CSporkManager ( )
inline

Definition at line 107 of file spork.h.

Member Function Documentation

◆ ExecuteSpork()

void CSporkManager::ExecuteSpork ( int  nSporkID,
int  nValue 
)

Definition at line 75 of file spork.cpp.

Referenced by ProcessSpork(), and spork().

◆ GetSporkIDByName()

int CSporkManager::GetSporkIDByName ( std::string  strName)

Definition at line 170 of file spork.cpp.

Referenced by spork().

◆ GetSporkNameByID()

std::string CSporkManager::GetSporkNameByID ( int  nSporkID)

Definition at line 186 of file spork.cpp.

Referenced by spork().

◆ GetSporkValue()

int64_t CSporkManager::GetSporkValue ( int  nSporkID)

◆ IsSporkActive()

◆ ProcessSpork()

void CSporkManager::ProcessSpork ( CNode pfrom,
std::string &  strCommand,
CDataStream vRecv,
CConnman connman 
)

Definition at line 20 of file spork.cpp.

Referenced by ProcessMessage().

◆ SetPrivKey()

bool CSporkManager::SetPrivKey ( std::string  strPrivKey)

Definition at line 204 of file spork.cpp.

Referenced by AppInit2().

◆ UpdateSpork()

bool CSporkManager::UpdateSpork ( int  nSporkID,
int64_t  nValue,
CConnman connman 
)

Definition at line 104 of file spork.cpp.

Referenced by spork().

Member Data Documentation

◆ mapSporksActive

std::map<int, CSporkMessage> CSporkManager::mapSporksActive
private

Definition at line 103 of file spork.h.

Referenced by GetSporkValue(), IsSporkActive(), ProcessSpork(), and UpdateSpork().

◆ strMasterPrivKey

std::string CSporkManager::strMasterPrivKey
private

Definition at line 102 of file spork.h.

Referenced by SetPrivKey(), and UpdateSpork().

◆ vchSig

std::vector<unsigned char> CSporkManager::vchSig
private

Definition at line 101 of file spork.h.


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