25 extern std::map<uint256, CSporkMessage>
mapSporks;
Information about a peer.
An encapsulated public key.
Base Class for all signed messages on the network.
void ProcessGetSporks(CNode *pfrom, std::string &strCommand, CDataStream &vRecv)
std::string strMasterPrivKey
std::map< SporkId, CSporkMessage > mapSporksActive
bool UpdateSpork(SporkId nSporkID, int64_t nValue)
std::map< std::string, CSporkDef * > sporkDefsByName
bool SetPrivKey(std::string strPrivKey)
SporkId GetSporkIDByName(std::string strName)
std::string GetSporkNameByID(SporkId id)
std::map< SporkId, CSporkDef * > sporkDefsById
std::string ToString() const
int64_t GetSporkValue(SporkId nSporkID)
bool ProcessSpork(CNode *pfrom, std::string &strCommand, CDataStream &vRecv, int &dosScore)
int ProcessSporkMsg(CDataStream &vRecv)
bool IsSporkActive(SporkId nSporkID)
void AddOrUpdateSporkMessage(const CSporkMessage &spork, bool flush=false)
SERIALIZE_METHODS(CSporkManager, obj)
CSporkMessage(SporkId nSporkID, int64_t nValue, int64_t nTimeSigned)
uint256 GetSignatureHash() const override
const CPubKey GetPublicKey() const
const CPubKey GetPublicKeyOld() const
SERIALIZE_METHODS(CSporkMessage, obj)
std::string GetStrMessage() const override
uint256 HashQuark(const T1 pbegin, const T1 pend)
UniValue spork(const JSONRPCRequest &request)
std::vector< CSporkDef > sporkDefs
std::map< uint256, CSporkMessage > mapSporks
CSporkManager sporkManager
#define BEGIN(a)
Utilities for converting data from/to strings.