![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#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, COutPointLock > | mapOutPointLocks |
Private Attributes | |
int | nConfirmedHeight |
int64_t | nTimeCreated |
Definition at line 228 of file instantx.h.
|
inline |
Definition at line 235 of file instantx.h.
void CTxLockCandidate::AddOutPointLock | ( | const COutPoint & | outpoint | ) |
Definition at line 1148 of file instantx.cpp.
bool CTxLockCandidate::AddVote | ( | const CTxLockVote & | vote | ) |
Definition at line 1160 of file instantx.cpp.
Referenced by CInstantSend::ProcessTxLockVote().
int CTxLockCandidate::CountVotes | ( | ) | const |
Definition at line 1185 of file instantx.cpp.
Referenced by CInstantSend::ProcessTxLockVote().
|
inline |
Definition at line 245 of file instantx.h.
Referenced by CInstantSend::CheckAndRemove(), CInstantSend::LockTransactionInputs(), CInstantSend::ResolveConflicts(), CInstantSend::UpdateLockedTransaction(), and CInstantSend::Vote().
bool CTxLockCandidate::HasMasternodeVoted | ( | const COutPoint & | outpointIn, |
const COutPoint & | outpointMasternodeIn | ||
) |
Definition at line 1179 of file instantx.cpp.
bool CTxLockCandidate::IsAllOutPointsReady | ( | ) | const |
Definition at line 1167 of file instantx.cpp.
Referenced by CInstantSend::LockTransactionInputs(), CInstantSend::ResolveConflicts(), and CInstantSend::TryToFinalizeLockCandidate().
bool CTxLockCandidate::IsExpired | ( | int | nHeight | ) | const |
Definition at line 1197 of file instantx.cpp.
Referenced by CInstantSend::CheckAndRemove().
bool CTxLockCandidate::IsTimedOut | ( | ) | const |
Definition at line 1203 of file instantx.cpp.
Referenced by CInstantSend::ProcessTxLockVote().
void CTxLockCandidate::MarkOutpointAsAttacked | ( | const COutPoint & | outpoint | ) |
Definition at line 1153 of file instantx.cpp.
Referenced by CInstantSend::ProcessTxLockVote().
void CTxLockCandidate::Relay | ( | CConnman & | connman | ) | const |
Definition at line 1208 of file instantx.cpp.
|
inline |
Definition at line 255 of file instantx.h.
std::map<COutPoint, COutPointLock> CTxLockCandidate::mapOutPointLocks |
Definition at line 243 of file instantx.h.
Referenced by AddOutPointLock(), AddVote(), CInstantSend::CheckAndRemove(), CountVotes(), HasMasternodeVoted(), IsAllOutPointsReady(), CInstantSend::LockTransactionInputs(), MarkOutpointAsAttacked(), Relay(), and CInstantSend::Vote().
|
private |
Definition at line 231 of file instantx.h.
Referenced by IsExpired(), and SetConfirmedHeight().
|
private |
Definition at line 232 of file instantx.h.
Referenced by IsTimedOut().
CTxLockRequest CTxLockCandidate::txLockRequest |
Definition at line 242 of file instantx.h.
Referenced by GetHash(), CInstantSend::ProcessTxLockVote(), Relay(), CInstantSend::ResolveConflicts(), CInstantSend::TryToFinalizeLockCandidate(), and CInstantSend::UpdateLockedTransaction().