Dash Core  0.12.2.1
P2P Digital Currency
COutPointLock Class Reference

#include <instantx.h>

Public Member Functions

 COutPointLock (const COutPoint &outpointIn)
 
COutPoint GetOutpoint () const
 
bool AddVote (const CTxLockVote &vote)
 
std::vector< CTxLockVoteGetVotes () const
 
bool HasMasternodeVoted (const COutPoint &outpointMasternodeIn) const
 
int CountVotes () const
 
bool IsReady () const
 
void MarkAsAttacked ()
 
void Relay (CConnman &connman) const
 

Static Public Attributes

static const int SIGNATURES_REQUIRED = 6
 
static const int SIGNATURES_TOTAL = 10
 

Private Attributes

COutPoint outpoint
 
std::map< COutPoint, CTxLockVotemapMasternodeVotes
 
bool fAttacked = false
 

Detailed Description

Definition at line 200 of file instantx.h.

Constructor & Destructor Documentation

◆ COutPointLock()

COutPointLock::COutPointLock ( const COutPoint outpointIn)
inline

Definition at line 211 of file instantx.h.

Member Function Documentation

◆ AddVote()

bool COutPointLock::AddVote ( const CTxLockVote vote)

Definition at line 1111 of file instantx.cpp.

◆ CountVotes()

int COutPointLock::CountVotes ( ) const
inline

Definition at line 221 of file instantx.h.

Referenced by IsReady().

◆ GetOutpoint()

COutPoint COutPointLock::GetOutpoint ( ) const
inline

Definition at line 216 of file instantx.h.

◆ GetVotes()

std::vector< CTxLockVote > COutPointLock::GetVotes ( ) const

Definition at line 1119 of file instantx.cpp.

◆ HasMasternodeVoted()

bool COutPointLock::HasMasternodeVoted ( const COutPoint outpointMasternodeIn) const

Definition at line 1130 of file instantx.cpp.

◆ IsReady()

bool COutPointLock::IsReady ( ) const
inline

Definition at line 222 of file instantx.h.

◆ MarkAsAttacked()

void COutPointLock::MarkAsAttacked ( )
inline

Definition at line 223 of file instantx.h.

◆ Relay()

void COutPointLock::Relay ( CConnman connman) const

Definition at line 1135 of file instantx.cpp.

Member Data Documentation

◆ fAttacked

bool COutPointLock::fAttacked = false
private

Definition at line 205 of file instantx.h.

Referenced by CountVotes(), IsReady(), and MarkAsAttacked().

◆ mapMasternodeVotes

std::map<COutPoint, CTxLockVote> COutPointLock::mapMasternodeVotes
private

Definition at line 204 of file instantx.h.

Referenced by AddVote(), CountVotes(), GetVotes(), HasMasternodeVoted(), and Relay().

◆ outpoint

COutPoint COutPointLock::outpoint
private

Definition at line 203 of file instantx.h.

Referenced by GetOutpoint().

◆ SIGNATURES_REQUIRED

const int COutPointLock::SIGNATURES_REQUIRED = 6
static

Definition at line 208 of file instantx.h.

Referenced by CInstantSend::IsEnoughOrphanVotesForTxAndOutPoint(), and IsReady().

◆ SIGNATURES_TOTAL

const int COutPointLock::SIGNATURES_TOTAL = 10
static

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