Dash Core  0.12.2.1
P2P Digital Currency
CSporkMessage Class Reference

#include <spork.h>

Public Member Functions

 CSporkMessage (int nSporkID, int64_t nValue, int64_t nTimeSigned)
 
 CSporkMessage ()
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
uint256 GetHash () const
 
bool Sign (std::string strSignKey)
 
bool CheckSignature ()
 
void Relay (CConnman &connman)
 

Public Attributes

int nSporkID
 
int64_t nValue
 
int64_t nTimeSigned
 
 ADD_SERIALIZE_METHODS
 

Private Attributes

std::vector< unsigned char > vchSig
 

Detailed Description

Definition at line 50 of file spork.h.

Constructor & Destructor Documentation

◆ CSporkMessage() [1/2]

CSporkMessage::CSporkMessage ( int  nSporkID,
int64_t  nValue,
int64_t  nTimeSigned 
)
inline

Definition at line 60 of file spork.h.

◆ CSporkMessage() [2/2]

CSporkMessage::CSporkMessage ( )
inline

Definition at line 66 of file spork.h.

Member Function Documentation

◆ CheckSignature()

bool CSporkMessage::CheckSignature ( )

Definition at line 245 of file spork.cpp.

◆ GetHash()

uint256 CSporkMessage::GetHash ( ) const
inline

Definition at line 83 of file spork.h.

Referenced by Relay().

◆ Relay()

void CSporkMessage::Relay ( CConnman connman)

Definition at line 260 of file spork.cpp.

◆ SerializationOp()

template<typename Stream , typename Operation >
void CSporkMessage::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 76 of file spork.h.

◆ Sign()

bool CSporkMessage::Sign ( std::string  strSignKey)

Definition at line 220 of file spork.cpp.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CSporkMessage::ADD_SERIALIZE_METHODS

Definition at line 73 of file spork.h.

◆ nSporkID

int CSporkMessage::nSporkID

Definition at line 56 of file spork.h.

Referenced by CheckSignature(), GetHash(), SerializationOp(), and Sign().

◆ nTimeSigned

int64_t CSporkMessage::nTimeSigned

Definition at line 58 of file spork.h.

Referenced by CheckSignature(), GetHash(), SerializationOp(), and Sign().

◆ nValue

int64_t CSporkMessage::nValue

Definition at line 57 of file spork.h.

Referenced by CheckSignature(), GetHash(), SerializationOp(), and Sign().

◆ vchSig

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

Definition at line 53 of file spork.h.

Referenced by CheckSignature(), SerializationOp(), and Sign().


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