Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <privatesend.h>

+ Collaboration diagram for CPrivateSend:

Static Public Member Functions

static void InitStandardDenominations ()
 
static std::vector< CAmountGetStandardDenominations ()
 
static CAmount GetSmallestDenomination ()
 
static bool IsDenominatedAmount (CAmount nInputAmount)
 
static bool IsValidDenomination (int nDenom)
 
static int AmountToDenomination (CAmount nInputAmount)
 
static CAmount DenominationToAmount (int nDenom)
 
static std::string DenominationToString (int nDenom)
 
static std::string GetMessageByID (PoolMessage nMessageID)
 
static int GetMinPoolParticipants ()
 Get the minimum/maximum number of participants for the pool. More...
 
static int GetMaxPoolParticipants ()
 
static CAmount GetMaxPoolAmount ()
 
static bool IsCollateralValid (const CTransaction &txCollateral)
 If the collateral is valid given by a client. More...
 
static CAmount GetCollateralAmount ()
 
static CAmount GetMaxCollateralAmount ()
 
static bool IsCollateralAmount (CAmount nInputAmount)
 
static void AddDSTX (const CPrivateSendBroadcastTx &dstx)
 
static CPrivateSendBroadcastTx GetDSTX (const uint256 &hash)
 
static void UpdatedBlockTip (const CBlockIndex *pindex)
 
static void NotifyChainLock (const CBlockIndex *pindex)
 
static void UpdateDSTXConfirmedHeight (const CTransactionRef &tx, int nHeight)
 
static void TransactionAddedToMempool (const CTransactionRef &tx)
 
static void BlockConnected (const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindex, const std::vector< CTransactionRef > &vtxConflicted)
 
static void BlockDisconnected (const std::shared_ptr< const CBlock > &pblock, const CBlockIndex *pindexDisconnected)
 

Private Member Functions

 CPrivateSend ()
 
 ~CPrivateSend ()
 
 CPrivateSend (CPrivateSend const &)=delete
 
CPrivateSendoperator= (CPrivateSend const &)=delete
 

Static Private Member Functions

static void CheckDSTXes (const CBlockIndex *pindex)
 

Static Private Attributes

static std::vector< CAmountvecStandardDenominations
 
static std::map< uint256, CPrivateSendBroadcastTxmapDSTX
 
static CCriticalSection cs_mapdstx
 

Detailed Description

Definition at line 417 of file privatesend.h.

Constructor & Destructor Documentation

◆ CPrivateSend() [1/2]

CPrivateSend::CPrivateSend ( )
inlineprivate

Definition at line 421 of file privatesend.h.

◆ ~CPrivateSend()

CPrivateSend::~CPrivateSend ( )
inlineprivate

Definition at line 422 of file privatesend.h.

◆ CPrivateSend() [2/2]

CPrivateSend::CPrivateSend ( CPrivateSend const &  )
privatedelete

Member Function Documentation

◆ AddDSTX()

void CPrivateSend::AddDSTX ( const CPrivateSendBroadcastTx dstx)
static

◆ AmountToDenomination()

int CPrivateSend::AmountToDenomination ( CAmount  nInputAmount)
static

◆ BlockConnected()

void CPrivateSend::BlockConnected ( const std::shared_ptr< const CBlock > &  pblock,
const CBlockIndex pindex,
const std::vector< CTransactionRef > &  vtxConflicted 
)
static

◆ BlockDisconnected()

void CPrivateSend::BlockDisconnected ( const std::shared_ptr< const CBlock > &  pblock,
const CBlockIndex pindexDisconnected 
)
static

◆ CheckDSTXes()

void CPrivateSend::CheckDSTXes ( const CBlockIndex pindex)
staticprivate

Definition at line 544 of file privatesend.cpp.

References cs_mapdstx, LOCK, LogPrint, mapDSTX, and BCLog::PRIVATESEND.

Referenced by NotifyChainLock(), and UpdatedBlockTip().

◆ DenominationToAmount()

◆ DenominationToString()

◆ GetCollateralAmount()

◆ GetDSTX()

◆ GetMaxCollateralAmount()

◆ GetMaxPoolAmount()

static CAmount CPrivateSend::GetMaxPoolAmount ( )
inlinestatic

◆ GetMaxPoolParticipants()

◆ GetMessageByID()

◆ GetMinPoolParticipants()

static int CPrivateSend::GetMinPoolParticipants ( )
inlinestatic

◆ GetSmallestDenomination()

◆ GetStandardDenominations()

static std::vector<CAmount> CPrivateSend::GetStandardDenominations ( )
inlinestatic

◆ InitStandardDenominations()

void CPrivateSend::InitStandardDenominations ( )
static

Definition at line 316 of file privatesend.cpp.

References COIN, and vecStandardDenominations.

Referenced by AppInitMain().

◆ IsCollateralAmount()

◆ IsCollateralValid()

◆ IsDenominatedAmount()

◆ IsValidDenomination()

bool CPrivateSend::IsValidDenomination ( int  nDenom)
static

◆ NotifyChainLock()

void CPrivateSend::NotifyChainLock ( const CBlockIndex pindex)
static

◆ operator=()

CPrivateSend& CPrivateSend::operator= ( CPrivateSend const &  )
privatedelete

◆ TransactionAddedToMempool()

void CPrivateSend::TransactionAddedToMempool ( const CTransactionRef tx)
static

◆ UpdatedBlockTip()

void CPrivateSend::UpdatedBlockTip ( const CBlockIndex pindex)
static

◆ UpdateDSTXConfirmedHeight()

void CPrivateSend::UpdateDSTXConfirmedHeight ( const CTransactionRef tx,
int  nHeight 
)
static

Member Data Documentation

◆ cs_mapdstx

CCriticalSection CPrivateSend::cs_mapdstx
staticprivate

◆ mapDSTX

std::map< uint256, CPrivateSendBroadcastTx > CPrivateSend::mapDSTX
staticprivate

Definition at line 428 of file privatesend.h.

Referenced by AddDSTX(), CheckDSTXes(), GetDSTX(), and UpdateDSTXConfirmedHeight().

◆ vecStandardDenominations

std::vector< CAmount > CPrivateSend::vecStandardDenominations
staticprivate

The documentation for this class was generated from the following files:
Released under the MIT license