![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#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, CSporkMessage > | mapSporksActive |
void CSporkManager::ExecuteSpork | ( | int | nSporkID, |
int | nValue | ||
) |
Definition at line 75 of file spork.cpp.
Referenced by ProcessSpork(), and spork().
int CSporkManager::GetSporkIDByName | ( | std::string | strName | ) |
std::string CSporkManager::GetSporkNameByID | ( | int | nSporkID | ) |
int64_t CSporkManager::GetSporkValue | ( | int | nSporkID | ) |
Definition at line 148 of file spork.cpp.
Referenced by ApproximateBestSubset(), CWallet::CreateTransaction(), CTxLockRequest::IsValid(), WalletModel::prepareTransaction(), CWallet::SelectCoinsMinConf(), and spork().
bool CSporkManager::IsSporkActive | ( | int | nSporkID | ) |
Definition at line 120 of file spork.cpp.
Referenced by CheckBlock(), FillBlockPayments(), getblocktemplate(), CMasternodePayments::GetMinMasternodePaymentsProto(), CInstantSend::GetTransactionLockSignatures(), IsBlockPayeeValid(), IsBlockValueValid(), CInstantSend::IsInstantSendReadyToLock(), CInstantSend::IsLockedInstantSendTransaction(), CMasternode::IsValidForPayment(), CInstantSend::LockTransactionInputs(), CInstantSend::ProcessMessage(), spork(), CInstantSend::TryToFinalizeLockCandidate(), and CInstantSend::Vote().
void CSporkManager::ProcessSpork | ( | CNode * | pfrom, |
std::string & | strCommand, | ||
CDataStream & | vRecv, | ||
CConnman & | connman | ||
) |
Definition at line 20 of file spork.cpp.
Referenced by ProcessMessage().
bool CSporkManager::SetPrivKey | ( | std::string | strPrivKey | ) |
Definition at line 204 of file spork.cpp.
Referenced by AppInit2().
bool CSporkManager::UpdateSpork | ( | int | nSporkID, |
int64_t | nValue, | ||
CConnman & | connman | ||
) |
|
private |
Definition at line 103 of file spork.h.
Referenced by GetSporkValue(), IsSporkActive(), ProcessSpork(), and UpdateSpork().
|
private |
Definition at line 102 of file spork.h.
Referenced by SetPrivKey(), and UpdateSpork().