Dash Core  0.12.2.1
P2P Digital Currency
CTxLockCandidate Class Reference

#include <instantx.h>

Public Member Functions

 CTxLockCandidate (const CTxLockRequest &txLockRequestIn)
 
uint256 GetHash () const
 
void AddOutPointLock (const COutPoint &outpoint)
 
void MarkOutpointAsAttacked (const COutPoint &outpoint)
 
bool AddVote (const CTxLockVote &vote)
 
bool IsAllOutPointsReady () const
 
bool HasMasternodeVoted (const COutPoint &outpointIn, const COutPoint &outpointMasternodeIn)
 
int CountVotes () const
 
void SetConfirmedHeight (int nConfirmedHeightIn)
 
bool IsExpired (int nHeight) const
 
bool IsTimedOut () const
 
void Relay (CConnman &connman) const
 

Public Attributes

CTxLockRequest txLockRequest
 
std::map< COutPoint, COutPointLockmapOutPointLocks
 

Private Attributes

int nConfirmedHeight
 
int64_t nTimeCreated
 

Detailed Description

Definition at line 228 of file instantx.h.

Constructor & Destructor Documentation

◆ CTxLockCandidate()

CTxLockCandidate::CTxLockCandidate ( const CTxLockRequest txLockRequestIn)
inline

Definition at line 235 of file instantx.h.

Member Function Documentation

◆ AddOutPointLock()

void CTxLockCandidate::AddOutPointLock ( const COutPoint outpoint)

Definition at line 1148 of file instantx.cpp.

◆ AddVote()

bool CTxLockCandidate::AddVote ( const CTxLockVote vote)

Definition at line 1160 of file instantx.cpp.

Referenced by CInstantSend::ProcessTxLockVote().

◆ CountVotes()

int CTxLockCandidate::CountVotes ( ) const

Definition at line 1185 of file instantx.cpp.

Referenced by CInstantSend::ProcessTxLockVote().

◆ GetHash()

◆ HasMasternodeVoted()

bool CTxLockCandidate::HasMasternodeVoted ( const COutPoint outpointIn,
const COutPoint outpointMasternodeIn 
)

Definition at line 1179 of file instantx.cpp.

◆ IsAllOutPointsReady()

bool CTxLockCandidate::IsAllOutPointsReady ( ) const

◆ IsExpired()

bool CTxLockCandidate::IsExpired ( int  nHeight) const

Definition at line 1197 of file instantx.cpp.

Referenced by CInstantSend::CheckAndRemove().

◆ IsTimedOut()

bool CTxLockCandidate::IsTimedOut ( ) const

Definition at line 1203 of file instantx.cpp.

Referenced by CInstantSend::ProcessTxLockVote().

◆ MarkOutpointAsAttacked()

void CTxLockCandidate::MarkOutpointAsAttacked ( const COutPoint outpoint)

Definition at line 1153 of file instantx.cpp.

Referenced by CInstantSend::ProcessTxLockVote().

◆ Relay()

void CTxLockCandidate::Relay ( CConnman connman) const

Definition at line 1208 of file instantx.cpp.

◆ SetConfirmedHeight()

void CTxLockCandidate::SetConfirmedHeight ( int  nConfirmedHeightIn)
inline

Definition at line 255 of file instantx.h.

Member Data Documentation

◆ mapOutPointLocks

◆ nConfirmedHeight

int CTxLockCandidate::nConfirmedHeight
private

Definition at line 231 of file instantx.h.

Referenced by IsExpired(), and SetConfirmedHeight().

◆ nTimeCreated

int64_t CTxLockCandidate::nTimeCreated
private

Definition at line 232 of file instantx.h.

Referenced by IsTimedOut().

◆ txLockRequest


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