![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <privatesend.h>
Static Public Member Functions | |
static void | InitStandardDenominations () |
static std::vector< CAmount > | GetStandardDenominations () |
static CAmount | GetSmallestDenomination () |
static int | GetDenominationsByAmounts (const std::vector< CAmount > &vecAmount) |
Get the denominations for a specific amount of dash. More... | |
static int | GetDenominations (const std::vector< CTxOut > &vecTxOut, bool fSingleRandomDenom=false) |
Get the denominations for a list of outputs (returns a bitshifted integer) More... | |
static int | GetDenominations (const std::vector< CTxDSOut > &vecTxDSOut) |
static std::string | GetDenominationsToString (int nDenom) |
static bool | GetDenominationsBits (int nDenom, std::vector< int > &vecBitsRet) |
static std::string | GetMessageByID (PoolMessage nMessageID) |
static int | GetMaxPoolTransactions () |
Get the maximum number of transactions for the pool. More... | |
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 void | AddDSTX (const CDarksendBroadcastTx &dstx) |
static CDarksendBroadcastTx | GetDSTX (const uint256 &hash) |
static void | CheckDSTXes (int nHeight) |
static void | SyncTransaction (const CTransaction &tx, const CBlock *pblock) |
Private Member Functions | |
CPrivateSend () | |
~CPrivateSend () | |
CPrivateSend (CPrivateSend const &)=delete | |
CPrivateSend & | operator= (CPrivateSend const &)=delete |
Static Private Attributes | |
static const CAmount | COLLATERAL = 0.001 * COIN |
static std::vector< CAmount > | vecStandardDenominations |
static std::map< uint256, CDarksendBroadcastTx > | mapDSTX |
static CCriticalSection | cs_mapdstx |
Definition at line 309 of file privatesend.h.
|
inlineprivate |
Definition at line 313 of file privatesend.h.
|
inlineprivate |
Definition at line 314 of file privatesend.h.
|
privatedelete |
|
static |
Definition at line 368 of file privatesend.cpp.
Referenced by CPrivateSendServer::CommitFinalTransaction(), and ProcessMessage().
|
static |
Definition at line 381 of file privatesend.cpp.
Referenced by CPrivateSendClient::UpdatedBlockTip().
|
inlinestatic |
Definition at line 349 of file privatesend.h.
Referenced by CWallet::CreateCollateralTransaction(), CPrivateSendClient::CreateDenominated(), TransactionRecord::decomposeTransaction(), CPrivateSendClient::DoAutomaticDenominating(), CWallet::GetAnonymizableBalance(), CWallet::IsCollateralAmount(), and IsCollateralValid().
|
static |
Get the denominations for a list of outputs (returns a bitshifted integer)
Definition at line 271 of file privatesend.cpp.
Referenced by GetDenominations(), GetDenominationsByAmounts(), CPrivateSendServer::IsOutputsCompatibleWithSessionDenom(), and CPrivateSendClient::PrepareDenominate().
|
static |
Definition at line 252 of file privatesend.cpp.
|
static |
Definition at line 303 of file privatesend.cpp.
Referenced by CPrivateSendServer::IsAcceptableDenomAndCollateral(), CPrivateSendClient::JoinExistingQueue(), CPrivateSendClient::PrepareDenominate(), and CWallet::SelectCoinsByDenominations().
|
static |
Get the denominations for a specific amount of dash.
Definition at line 326 of file privatesend.cpp.
Referenced by CPrivateSendClient::StartNewQueue().
|
static |
Definition at line 230 of file privatesend.cpp.
Referenced by CPrivateSendServer::AddUserToExistingSession(), CPrivateSendServer::CreateNewSession(), CPrivateSendClient::JoinExistingQueue(), OverviewPage::privateSendStatus(), CPrivateSendServer::ProcessMessage(), CPrivateSendServer::RelayCompletedTransaction(), CPrivateSendServer::RelayFinalTransaction(), CPrivateSendServer::RelayStatus(), and CPrivateSendClient::StartNewQueue().
|
static |
Definition at line 374 of file privatesend.cpp.
Referenced by AlreadyHave(), CPrivateSendServer::CommitFinalTransaction(), ProcessGetData(), ProcessMessage(), and CConnman::RelayTransaction().
|
inlinestatic |
Definition at line 350 of file privatesend.h.
Referenced by CPrivateSendClient::CreateDenominated(), CPrivateSendClient::DoAutomaticDenominating(), CWallet::IsCollateralAmount(), CPrivateSendClient::MakeCollateralAmounts(), and OverviewPage::togglePrivateSend().
|
inlinestatic |
Definition at line 345 of file privatesend.h.
Referenced by CWallet::GetNeedsToBeAnonymizedBalance(), and CPrivateSendClient::PrepareDenominate().
|
inlinestatic |
Get the maximum number of transactions for the pool.
Definition at line 343 of file privatesend.h.
Referenced by CPrivateSendServer::AddEntry(), CPrivateSendServer::CheckPool(), CPrivateSendClient::GetStatus(), and CPrivateSendServer::IsSessionReady().
|
static |
Definition at line 339 of file privatesend.cpp.
Referenced by CPrivateSendClient::CheckPoolStateUpdate(), CPrivateSendClient::CompletedTransaction(), and CPrivateSendClient::ProcessMessage().
|
inlinestatic |
Definition at line 329 of file privatesend.h.
Referenced by CPrivateSendClient::DoAutomaticDenominating(), CWallet::GetAnonymizableBalance(), SendCoinsDialog::on_sendButton_clicked(), CWallet::SelectCoinsGrouppedByAddresses(), and OverviewPage::togglePrivateSend().
|
inlinestatic |
Definition at line 328 of file privatesend.h.
Referenced by CPrivateSendClient::CreateDenominated(), CWallet::IsDenominatedAmount(), CPrivateSendClient::JoinExistingQueue(), less_then_denom(), CPrivateSendClient::PrepareDenominate(), COutput::Priority(), CWallet::SelectCoins(), and CWallet::SelectCoinsByDenominations().
|
static |
Definition at line 149 of file privatesend.cpp.
Referenced by AppInit2().
|
static |
If the collateral is valid given by a client.
Definition at line 174 of file privatesend.cpp.
Referenced by CPrivateSendServer::AddEntry(), CPrivateSendClient::DoAutomaticDenominating(), and CPrivateSendServer::IsAcceptableDenomAndCollateral().
|
privatedelete |
|
static |
Definition at line 395 of file privatesend.cpp.
Referenced by CDSNotificationInterface::SyncTransaction().
Definition at line 318 of file privatesend.h.
Referenced by GetCollateralAmount(), and GetMaxCollateralAmount().
|
staticprivate |
Definition at line 324 of file privatesend.h.
Referenced by AddDSTX(), CheckDSTXes(), GetDSTX(), and SyncTransaction().
|
staticprivate |
Definition at line 322 of file privatesend.h.
Referenced by AddDSTX(), CheckDSTXes(), GetDSTX(), and SyncTransaction().
|
staticprivate |
Definition at line 321 of file privatesend.h.
Referenced by GetDenominations(), GetDenominationsBits(), GetDenominationsToString(), GetMaxPoolAmount(), GetSmallestDenomination(), GetStandardDenominations(), and InitStandardDenominations().