Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

Used to keep track of current status of mixing pool. More...

#include <privatesend-client.h>

+ Inheritance diagram for CPrivateSendClientManager:
+ Collaboration diagram for CPrivateSendClientManager:

Public Member Functions

 CPrivateSendClientManager ()
 
void ProcessMessage (CNode *pfrom, const std::string &strCommand, CDataStream &vRecv, CConnman &connman)
 
void ResetPool ()
 
std::string GetStatuses ()
 
std::string GetSessionDenoms ()
 
bool GetMixingMasternodesInfo (std::vector< CDeterministicMNCPtr > &vecDmnsRet) const
 
bool DoAutomaticDenominating (CConnman &connman, bool fDryRun=false)
 Passively run mixing in the background according to the configuration in settings. More...
 
void CheckTimeout ()
 
void ProcessPendingDsaRequest (CConnman &connman)
 
void AddUsedMasternode (const COutPoint &outpointMn)
 
CDeterministicMNCPtr GetRandomNotUsedMasternode ()
 
void UpdatedSuccessBlock ()
 
void UpdatedBlockTip (const CBlockIndex *pindex)
 
void DoMaintenance (CConnman &connman)
 
void GetJsonInfo (UniValue &obj) const
 
- Public Member Functions inherited from CPrivateSendBaseManager
 CPrivateSendBaseManager ()
 
int GetQueueSize () const
 
bool GetQueueItemAndTry (CPrivateSendQueue &dsqRet)
 

Public Attributes

int nPrivateSendSessions
 
int nPrivateSendRounds
 
int nPrivateSendRandomRounds
 
int nPrivateSendAmount
 
int nPrivateSendDenomsGoal
 
int nPrivateSendDenomsHardCap
 
bool fEnablePrivateSend
 
bool fPrivateSendRunning
 
bool fPrivateSendMultiSession
 
int nCachedNumBlocks
 
bool fCreateAutoBackups
 

Private Member Functions

bool WaitForAnotherBlock ()
 
bool CheckAutomaticBackup ()
 

Private Attributes

std::vector< COutPointvecMasternodesUsed
 
std::deque< CPrivateSendClientSessiondeqSessions
 
CCriticalSection cs_deqsessions
 
int nCachedLastSuccessBlock
 
int nMinBlocksToWait
 
std::string strAutoDenomResult
 
int nCachedBlockHeight
 

Additional Inherited Members

- Protected Member Functions inherited from CPrivateSendBaseManager
void SetNull ()
 
void CheckQueue ()
 
- Protected Attributes inherited from CPrivateSendBaseManager
CCriticalSection cs_vecqueue
 
std::vector< CPrivateSendQueuevecPrivateSendQueue
 

Detailed Description

Used to keep track of current status of mixing pool.

Definition at line 184 of file privatesend-client.h.

Constructor & Destructor Documentation

◆ CPrivateSendClientManager()

CPrivateSendClientManager::CPrivateSendClientManager ( )
inline

Definition at line 220 of file privatesend-client.h.

Member Function Documentation

◆ AddUsedMasternode()

void CPrivateSendClientManager::AddUsedMasternode ( const COutPoint outpointMn)

◆ CheckAutomaticBackup()

◆ CheckTimeout()

void CPrivateSendClientManager::CheckTimeout ( )

◆ DoAutomaticDenominating()

bool CPrivateSendClientManager::DoAutomaticDenominating ( CConnman connman,
bool  fDryRun = false 
)

◆ DoMaintenance()

◆ GetJsonInfo()

◆ GetMixingMasternodesInfo()

bool CPrivateSendClientManager::GetMixingMasternodesInfo ( std::vector< CDeterministicMNCPtr > &  vecDmnsRet) const

Definition at line 346 of file privatesend-client.cpp.

References cs_deqsessions, deqSessions, and LOCK.

Referenced by CMasternodeUtils::ProcessMasternodeConnections().

◆ GetRandomNotUsedMasternode()

CDeterministicMNCPtr CPrivateSendClientManager::GetRandomNotUsedMasternode ( )

◆ GetSessionDenoms()

std::string CPrivateSendClientManager::GetSessionDenoms ( )

◆ GetStatuses()

std::string CPrivateSendClientManager::GetStatuses ( )

Definition at line 317 of file privatesend-client.cpp.

References cs_deqsessions, deqSessions, LOCK, and WaitForAnotherBlock().

◆ ProcessMessage()

◆ ProcessPendingDsaRequest()

void CPrivateSendClientManager::ProcessPendingDsaRequest ( CConnman connman)

Definition at line 1177 of file privatesend-client.cpp.

References _(), cs_deqsessions, deqSessions, LOCK, and strAutoDenomResult.

Referenced by DoMaintenance().

◆ ResetPool()

void CPrivateSendClientManager::ResetPool ( )

◆ UpdatedBlockTip()

void CPrivateSendClientManager::UpdatedBlockTip ( const CBlockIndex pindex)

◆ UpdatedSuccessBlock()

◆ WaitForAnotherBlock()

bool CPrivateSendClientManager::WaitForAnotherBlock ( )
private

Member Data Documentation

◆ cs_deqsessions

◆ deqSessions

◆ fCreateAutoBackups

bool CPrivateSendClientManager::fCreateAutoBackups

Definition at line 218 of file privatesend-client.h.

Referenced by CheckAutomaticBackup(), and OverviewPage::OverviewPage().

◆ fEnablePrivateSend

◆ fPrivateSendMultiSession

◆ fPrivateSendRunning

◆ nCachedBlockHeight

int CPrivateSendClientManager::nCachedBlockHeight
private

Definition at line 199 of file privatesend-client.h.

Referenced by UpdatedBlockTip(), UpdatedSuccessBlock(), and WaitForAnotherBlock().

◆ nCachedLastSuccessBlock

int CPrivateSendClientManager::nCachedLastSuccessBlock
private

Definition at line 194 of file privatesend-client.h.

Referenced by ResetPool(), UpdatedSuccessBlock(), and WaitForAnotherBlock().

◆ nCachedNumBlocks

int CPrivateSendClientManager::nCachedNumBlocks

◆ nMinBlocksToWait

int CPrivateSendClientManager::nMinBlocksToWait
private

Definition at line 195 of file privatesend-client.h.

Referenced by WaitForAnotherBlock().

◆ nPrivateSendAmount

◆ nPrivateSendDenomsGoal

int CPrivateSendClientManager::nPrivateSendDenomsGoal

◆ nPrivateSendDenomsHardCap

int CPrivateSendClientManager::nPrivateSendDenomsHardCap

◆ nPrivateSendRandomRounds

int CPrivateSendClientManager::nPrivateSendRandomRounds

◆ nPrivateSendRounds

◆ nPrivateSendSessions

int CPrivateSendClientManager::nPrivateSendSessions

◆ strAutoDenomResult

std::string CPrivateSendClientManager::strAutoDenomResult
private

◆ vecMasternodesUsed

std::vector<COutPoint> CPrivateSendClientManager::vecMasternodesUsed
private

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