Dash Core  0.12.2.1
P2P Digital Currency
CDarksendQueue Class Reference

#include <privatesend.h>

Public Member Functions

 CDarksendQueue ()
 
 CDarksendQueue (int nDenom, COutPoint outpoint, int64_t nTime, bool fReady)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
bool Sign ()
 
bool CheckSignature (const CPubKey &pubKeyMasternode)
 Check if we have a valid Masternode address. More...
 
bool Relay (CConnman &connman)
 
bool IsExpired ()
 Is this queue expired? More...
 
std::string ToString ()
 

Public Attributes

int nDenom
 
CTxIn vin
 
int64_t nTime
 
bool fReady
 
std::vector< unsigned char > vchSig
 
bool fTried
 
 ADD_SERIALIZE_METHODS
 

Friends

bool operator== (const CDarksendQueue &a, const CDarksendQueue &b)
 

Detailed Description

A currently inprogress mixing merge and denomination information

Definition at line 149 of file privatesend.h.

Constructor & Destructor Documentation

◆ CDarksendQueue() [1/2]

CDarksendQueue::CDarksendQueue ( )
inline

Definition at line 160 of file privatesend.h.

◆ CDarksendQueue() [2/2]

CDarksendQueue::CDarksendQueue ( int  nDenom,
COutPoint  outpoint,
int64_t  nTime,
bool  fReady 
)
inline

Definition at line 169 of file privatesend.h.

Member Function Documentation

◆ CheckSignature()

bool CDarksendQueue::CheckSignature ( const CPubKey pubKeyMasternode)

Check if we have a valid Masternode address.

Definition at line 62 of file privatesend.cpp.

Referenced by Sign().

◆ IsExpired()

bool CDarksendQueue::IsExpired ( )
inline

Is this queue expired?

Definition at line 203 of file privatesend.h.

Referenced by CPrivateSendClient::JoinExistingQueue().

◆ Relay()

bool CDarksendQueue::Relay ( CConnman connman)

◆ SerializationOp()

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

Definition at line 181 of file privatesend.h.

◆ Sign()

bool CDarksendQueue::Sign ( )

Sign this mixing transaction

Returns
true if all conditions are met: 1) we have an active Masternode, 2) we have a valid Masternode private key, 3) we signed the message successfully, and 4) we verified the message successfully

Definition at line 48 of file privatesend.cpp.

Referenced by CPrivateSendServer::CheckForCompleteQueue(), and CPrivateSendServer::CreateNewSession().

◆ ToString()

std::string CDarksendQueue::ToString ( )
inline

Friends And Related Function Documentation

◆ operator==

bool operator== ( const CDarksendQueue a,
const CDarksendQueue b 
)
friend

Definition at line 211 of file privatesend.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CDarksendQueue::ADD_SERIALIZE_METHODS

Definition at line 178 of file privatesend.h.

◆ fReady

bool CDarksendQueue::fReady

Definition at line 155 of file privatesend.h.

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

◆ fTried

bool CDarksendQueue::fTried

Definition at line 158 of file privatesend.h.

Referenced by CPrivateSendClient::JoinExistingQueue(), and ToString().

◆ nDenom

int CDarksendQueue::nDenom

◆ nTime

int64_t CDarksendQueue::nTime

Definition at line 154 of file privatesend.h.

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

◆ vchSig

std::vector<unsigned char> CDarksendQueue::vchSig

Definition at line 156 of file privatesend.h.

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

◆ vin


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