![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <instantx.h>
Public Member Functions | |
COutPointLock (const COutPoint &outpointIn) | |
COutPoint | GetOutpoint () const |
bool | AddVote (const CTxLockVote &vote) |
std::vector< CTxLockVote > | GetVotes () 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, CTxLockVote > | mapMasternodeVotes |
bool | fAttacked = false |
Definition at line 200 of file instantx.h.
|
inline |
Definition at line 211 of file instantx.h.
bool COutPointLock::AddVote | ( | const CTxLockVote & | vote | ) |
Definition at line 1111 of file instantx.cpp.
|
inline |
Definition at line 221 of file instantx.h.
Referenced by IsReady().
|
inline |
Definition at line 216 of file instantx.h.
std::vector< CTxLockVote > COutPointLock::GetVotes | ( | ) | const |
Definition at line 1119 of file instantx.cpp.
bool COutPointLock::HasMasternodeVoted | ( | const COutPoint & | outpointMasternodeIn | ) | const |
Definition at line 1130 of file instantx.cpp.
|
inline |
Definition at line 222 of file instantx.h.
|
inline |
Definition at line 223 of file instantx.h.
void COutPointLock::Relay | ( | CConnman & | connman | ) | const |
Definition at line 1135 of file instantx.cpp.
|
private |
Definition at line 205 of file instantx.h.
Referenced by CountVotes(), IsReady(), and MarkAsAttacked().
|
private |
Definition at line 204 of file instantx.h.
Referenced by AddVote(), CountVotes(), GetVotes(), HasMasternodeVoted(), and Relay().
|
private |
Definition at line 203 of file instantx.h.
Referenced by GetOutpoint().
|
static |
Definition at line 208 of file instantx.h.
Referenced by CInstantSend::IsEnoughOrphanVotesForTxAndOutPoint(), and IsReady().
|
static |
Definition at line 209 of file instantx.h.
Referenced by CTxLockRequest::GetMaxSignatures(), CTxLockVote::IsValid(), and CInstantSend::Vote().