Dash Core  0.12.2.1
P2P Digital Currency
CTxLockVote Class Reference

#include <instantx.h>

Public Member Functions

 CTxLockVote ()
 
 CTxLockVote (const uint256 &txHashIn, const COutPoint &outpointIn, const COutPoint &outpointMasternodeIn)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
uint256 GetHash () const
 
uint256 GetTxHash () const
 
COutPoint GetOutpoint () const
 
COutPoint GetMasternodeOutpoint () const
 
bool IsValid (CNode *pnode, CConnman &connman) const
 
void SetConfirmedHeight (int nConfirmedHeightIn)
 
bool IsExpired (int nHeight) const
 
bool IsTimedOut () const
 
bool IsFailed () const
 
bool Sign ()
 
bool CheckSignature () const
 
void Relay (CConnman &connman) const
 

Public Attributes

 ADD_SERIALIZE_METHODS
 

Private Attributes

uint256 txHash
 
COutPoint outpoint
 
COutPoint outpointMasternode
 
std::vector< unsigned char > vchMasternodeSignature
 
int nConfirmedHeight
 
int64_t nTimeCreated
 

Detailed Description

Definition at line 142 of file instantx.h.

Constructor & Destructor Documentation

◆ CTxLockVote() [1/2]

CTxLockVote::CTxLockVote ( )
inline

Definition at line 154 of file instantx.h.

◆ CTxLockVote() [2/2]

CTxLockVote::CTxLockVote ( const uint256 txHashIn,
const COutPoint outpointIn,
const COutPoint outpointMasternodeIn 
)
inline

Definition at line 163 of file instantx.h.

Member Function Documentation

◆ CheckSignature()

bool CTxLockVote::CheckSignature ( ) const

Definition at line 1047 of file instantx.cpp.

Referenced by IsValid(), and CInstantSend::Vote().

◆ GetHash()

uint256 CTxLockVote::GetHash ( ) const

Definition at line 1038 of file instantx.cpp.

Referenced by IsValid(), CInstantSend::ProcessTxLockVote(), Relay(), and CInstantSend::Vote().

◆ GetMasternodeOutpoint()

COutPoint CTxLockVote::GetMasternodeOutpoint ( ) const
inline

Definition at line 186 of file instantx.h.

Referenced by COutPointLock::AddVote(), and CInstantSend::ProcessTxLockVote().

◆ GetOutpoint()

COutPoint CTxLockVote::GetOutpoint ( ) const
inline

Definition at line 185 of file instantx.h.

Referenced by CTxLockCandidate::AddVote(), and CInstantSend::ProcessTxLockVote().

◆ GetTxHash()

uint256 CTxLockVote::GetTxHash ( ) const
inline

Definition at line 184 of file instantx.h.

Referenced by IsFailed(), and CInstantSend::ProcessTxLockVote().

◆ IsExpired()

bool CTxLockVote::IsExpired ( int  nHeight) const

Definition at line 1091 of file instantx.cpp.

◆ IsFailed()

bool CTxLockVote::IsFailed ( ) const

Definition at line 1102 of file instantx.cpp.

◆ IsTimedOut()

bool CTxLockVote::IsTimedOut ( ) const

Definition at line 1097 of file instantx.cpp.

◆ IsValid()

bool CTxLockVote::IsValid ( CNode pnode,
CConnman connman 
) const

Definition at line 999 of file instantx.cpp.

Referenced by CInstantSend::ProcessTxLockVote().

◆ Relay()

void CTxLockVote::Relay ( CConnman connman) const

Definition at line 1085 of file instantx.cpp.

Referenced by CInstantSend::ProcessTxLockVote(), and CInstantSend::Vote().

◆ SerializationOp()

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

Definition at line 175 of file instantx.h.

◆ SetConfirmedHeight()

void CTxLockVote::SetConfirmedHeight ( int  nConfirmedHeightIn)
inline

Definition at line 189 of file instantx.h.

◆ Sign()

bool CTxLockVote::Sign ( )

Definition at line 1067 of file instantx.cpp.

Referenced by CInstantSend::Vote().

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CTxLockVote::ADD_SERIALIZE_METHODS

Definition at line 172 of file instantx.h.

◆ nConfirmedHeight

int CTxLockVote::nConfirmedHeight
private

Definition at line 150 of file instantx.h.

Referenced by IsExpired(), and SetConfirmedHeight().

◆ nTimeCreated

int64_t CTxLockVote::nTimeCreated
private

Definition at line 151 of file instantx.h.

Referenced by IsFailed(), and IsTimedOut().

◆ outpoint

COutPoint CTxLockVote::outpoint
private

Definition at line 146 of file instantx.h.

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

◆ outpointMasternode

COutPoint CTxLockVote::outpointMasternode
private

Definition at line 147 of file instantx.h.

Referenced by CheckSignature(), GetHash(), GetMasternodeOutpoint(), IsValid(), and SerializationOp().

◆ txHash

uint256 CTxLockVote::txHash
private

Definition at line 145 of file instantx.h.

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

◆ vchMasternodeSignature

std::vector<unsigned char> CTxLockVote::vchMasternodeSignature
private

Definition at line 148 of file instantx.h.

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


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