Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <privatesend-client.h>

+ Inheritance diagram for CPrivateSendClientSession:
+ Collaboration diagram for CPrivateSendClientSession:

Public Member Functions

 CPrivateSendClientSession ()
 
void ProcessMessage (CNode *pfrom, const std::string &strCommand, CDataStream &vRecv, CConnman &connman)
 
void UnlockCoins ()
 
void ResetPool ()
 
std::string GetStatus (bool fWaitForBlock)
 
bool GetMixingMasternodeInfo (CDeterministicMNCPtr &ret) const
 
bool DoAutomaticDenominating (CConnman &connman, bool fDryRun=false)
 Passively run mixing in the background according to the configuration in settings. More...
 
bool SubmitDenominate (CConnman &connman)
 As a client, submit part of a future mixing transaction to a Masternode to start the process. More...
 
bool ProcessPendingDsaRequest (CConnman &connman)
 
bool CheckTimeout ()
 
void GetJsonInfo (UniValue &obj) const
 
- Public Member Functions inherited from CPrivateSendBaseSession
 CPrivateSendBaseSession ()
 
int GetState () const
 
std::string GetStateString () const
 
int GetEntriesCount () const
 

Private Member Functions

bool CreateDenominated (CAmount nBalanceToDenominate)
 Create denominations. More...
 
bool CreateDenominated (CAmount nBalanceToDenominate, const CompactTallyItem &tallyItem, bool fCreateMixingCollaterals)
 
bool MakeCollateralAmounts ()
 Split up large inputs or make fee sized inputs. More...
 
bool MakeCollateralAmounts (const CompactTallyItem &tallyItem, bool fTryDenominated)
 
bool JoinExistingQueue (CAmount nBalanceNeedsAnonymized, CConnman &connman)
 
bool StartNewQueue (CAmount nBalanceNeedsAnonymized, CConnman &connman)
 
bool SelectDenominate (std::string &strErrorRet, std::vector< std::pair< CTxDSIn, CTxOut > > &vecPSInOutPairsRet)
 step 0: select denominated inputs and txouts More...
 
bool PrepareDenominate (int nMinRounds, int nMaxRounds, std::string &strErrorRet, const std::vector< std::pair< CTxDSIn, CTxOut > > &vecPSInOutPairsIn, std::vector< std::pair< CTxDSIn, CTxOut > > &vecPSInOutPairsRet, bool fDryRun=false)
 step 1: prepare denominated inputs and outputs More...
 
bool SendDenominate (const std::vector< std::pair< CTxDSIn, CTxOut > > &vecPSInOutPairsIn, CConnman &connman)
 step 2: send denominated inputs and outputs prepared in step 1 More...
 
void ProcessPoolStateUpdate (CPrivateSendStatusUpdate psssup)
 Process Masternode updates about the progress of mixing. More...
 
void SetState (PoolState nStateNew)
 
void CompletedTransaction (PoolMessage nMessageID)
 
bool SignFinalTransaction (const CTransaction &finalTransactionNew, CNode *pnode, CConnman &connman)
 As a client, check and sign the final transaction. More...
 
void RelayIn (const CPrivateSendEntry &entry, CConnman &connman)
 
void SetNull ()
 

Private Attributes

std::vector< COutPointvecOutPointLocked
 
std::string strLastMessage
 
std::string strAutoDenomResult
 
CDeterministicMNCPtr mixingMasternode
 
CMutableTransaction txMyCollateral
 
CPendingDsaRequest pendingDsaRequest
 
CKeyHolderStorage keyHolderStorage
 

Additional Inherited Members

- Public Attributes inherited from CPrivateSendBaseSession
int nSessionDenom
 
- Protected Member Functions inherited from CPrivateSendBaseSession
void SetNull ()
 
bool IsValidInOuts (const std::vector< CTxIn > &vin, const std::vector< CTxOut > &vout, PoolMessage &nMessageIDRet, bool *fConsumeCollateralRet) const
 
- Protected Attributes inherited from CPrivateSendBaseSession
CCriticalSection cs_privatesend
 
std::vector< CPrivateSendEntryvecEntries
 
PoolState nState
 
int64_t nTimeLastSuccessfulStep
 
int nSessionID
 
CMutableTransaction finalMutableTransaction
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CPrivateSendClientSession()

CPrivateSendClientSession::CPrivateSendClientSession ( )
inline

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

Member Function Documentation

◆ CheckTimeout()

◆ CompletedTransaction()

◆ CreateDenominated() [1/2]

bool CPrivateSendClientSession::CreateDenominated ( CAmount  nBalanceToDenominate)
private

◆ CreateDenominated() [2/2]

◆ DoAutomaticDenominating()

◆ GetJsonInfo()

◆ GetMixingMasternodeInfo()

bool CPrivateSendClientSession::GetMixingMasternodeInfo ( CDeterministicMNCPtr ret) const

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

References mixingMasternode.

◆ GetStatus()

◆ JoinExistingQueue()

◆ MakeCollateralAmounts() [1/2]

bool CPrivateSendClientSession::MakeCollateralAmounts ( )
private

◆ MakeCollateralAmounts() [2/2]

◆ PrepareDenominate()

bool CPrivateSendClientSession::PrepareDenominate ( int  nMinRounds,
int  nMaxRounds,
std::string &  strErrorRet,
const std::vector< std::pair< CTxDSIn, CTxOut > > &  vecPSInOutPairsIn,
std::vector< std::pair< CTxDSIn, CTxOut > > &  vecPSInOutPairsRet,
bool  fDryRun = false 
)
private

◆ ProcessMessage()

◆ ProcessPendingDsaRequest()

◆ ProcessPoolStateUpdate()

◆ RelayIn()

void CPrivateSendClientSession::RelayIn ( const CPrivateSendEntry entry,
CConnman connman 
)
private

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

References CConnman::ForNode(), and mixingMasternode.

Referenced by SendDenominate().

◆ ResetPool()

void CPrivateSendClientSession::ResetPool ( )

◆ SelectDenominate()

bool CPrivateSendClientSession::SelectDenominate ( std::string &  strErrorRet,
std::vector< std::pair< CTxDSIn, CTxOut > > &  vecPSInOutPairsRet 
)
private

◆ SendDenominate()

◆ SetNull()

◆ SetState()

void CPrivateSendClientSession::SetState ( PoolState  nStateNew)
private

◆ SignFinalTransaction()

◆ StartNewQueue()

◆ SubmitDenominate()

bool CPrivateSendClientSession::SubmitDenominate ( CConnman connman)

◆ UnlockCoins()

Member Data Documentation

◆ keyHolderStorage

◆ mixingMasternode

CDeterministicMNCPtr CPrivateSendClientSession::mixingMasternode
private

◆ pendingDsaRequest

CPendingDsaRequest CPrivateSendClientSession::pendingDsaRequest
private

◆ strAutoDenomResult

std::string CPrivateSendClientSession::strAutoDenomResult
private

◆ strLastMessage

std::string CPrivateSendClientSession::strLastMessage
private

◆ txMyCollateral

CMutableTransaction CPrivateSendClientSession::txMyCollateral
private

◆ vecOutPointLocked

std::vector<COutPoint> CPrivateSendClientSession::vecOutPointLocked
private

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

Referenced by DoAutomaticDenominating(), PrepareDenominate(), and UnlockCoins().


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