![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <privatesend-server.h>
Public Member Functions | |
CPrivateSendServer () | |
void | ProcessMessage (CNode *pfrom, std::string &strCommand, CDataStream &vRecv, CConnman &connman) |
void | CheckTimeout (CConnman &connman) |
void | CheckForCompleteQueue (CConnman &connman) |
![]() | |
CPrivateSendBase () | |
int | GetQueueSize () const |
int | GetState () const |
std::string | GetStateString () const |
int | GetEntriesCount () const |
Private Member Functions | |
bool | AddEntry (const CDarkSendEntry &entryNew, PoolMessage &nMessageIDRet) |
Add a clients entry to the pool. More... | |
bool | AddScriptSig (const CTxIn &txin) |
Add signature to a txin. More... | |
void | ChargeFees (CConnman &connman) |
Charge fees to bad actors (Charge clients a fee if they're abusive) More... | |
void | ChargeRandomFees (CConnman &connman) |
Rarely charge fees to pay miners. More... | |
void | CheckPool (CConnman &connman) |
Check for process. More... | |
void | CreateFinalTransaction (CConnman &connman) |
void | CommitFinalTransaction (CConnman &connman) |
bool | IsAcceptableDenomAndCollateral (int nDenom, CTransaction txCollateral, PoolMessage &nMessageIDRet) |
Is this nDenom and txCollateral acceptable? More... | |
bool | CreateNewSession (int nDenom, CTransaction txCollateral, PoolMessage &nMessageIDRet, CConnman &connman) |
bool | AddUserToExistingSession (int nDenom, CTransaction txCollateral, PoolMessage &nMessageIDRet) |
bool | IsSessionReady () |
Do we have enough users to take entries? More... | |
bool | IsSignaturesComplete () |
Check that all inputs are signed. (Are all inputs signed?) More... | |
bool | IsInputScriptSigValid (const CTxIn &txin) |
Check to make sure a given input matches an input in the pool and its scriptSig is valid. More... | |
bool | IsOutputsCompatibleWithSessionDenom (const std::vector< CTxDSOut > &vecTxDSOut) |
Are these outputs compatible with other client in the pool? More... | |
void | SetState (PoolState nStateNew) |
void | RelayFinalTransaction (const CTransaction &txFinal, CConnman &connman) |
Relay mixing Messages. More... | |
void | PushStatus (CNode *pnode, PoolStatusUpdate nStatusUpdate, PoolMessage nMessageID, CConnman &connman) |
void | RelayStatus (PoolStatusUpdate nStatusUpdate, CConnman &connman, PoolMessage nMessageID=MSG_NOERR) |
void | RelayCompletedTransaction (PoolMessage nMessageID, CConnman &connman) |
void | SetNull () |
Private Attributes | |
CCriticalSection | cs_darksend |
std::vector< CTransaction > | vecSessionCollaterals |
bool | fUnitTest |
Additional Inherited Members | |
![]() | |
int | nSessionDenom |
![]() | |
void | SetNull () |
![]() | |
std::vector< CDarksendQueue > | vecDarksendQueue |
std::vector< CDarkSendEntry > | vecEntries |
PoolState | nState |
int64_t | nTimeLastSuccessfulStep |
int | nSessionID |
CMutableTransaction | finalMutableTransaction |
Used to keep track of current status of mixing pool
Definition at line 18 of file privatesend-server.h.
|
inline |
Definition at line 71 of file privatesend-server.h.
|
private |
Add a clients entry to the pool.
Definition at line 591 of file privatesend-server.cpp.
Referenced by ProcessMessage().
|
private |
Add signature to a txin.
Definition at line 637 of file privatesend-server.cpp.
Referenced by ProcessMessage().
|
private |
Definition at line 759 of file privatesend-server.cpp.
Referenced by ProcessMessage().
|
private |
Charge fees to bad actors (Charge clients a fee if they're abusive)
Definition at line 392 of file privatesend-server.cpp.
Referenced by CheckTimeout().
|
private |
Rarely charge fees to pay miners.
Definition at line 469 of file privatesend-server.cpp.
Referenced by CommitFinalTransaction().
void CPrivateSendServer::CheckForCompleteQueue | ( | CConnman & | connman | ) |
Definition at line 531 of file privatesend-server.cpp.
Referenced by ThreadCheckPrivateSendServer().
|
private |
Check for process.
Definition at line 278 of file privatesend-server.cpp.
Referenced by ProcessMessage().
void CPrivateSendServer::CheckTimeout | ( | CConnman & | connman | ) |
Definition at line 495 of file privatesend-server.cpp.
Referenced by ThreadCheckPrivateSendServer().
|
private |
Definition at line 331 of file privatesend-server.cpp.
Referenced by CheckPool().
|
private |
Definition at line 305 of file privatesend-server.cpp.
Referenced by CheckPool().
|
private |
Definition at line 720 of file privatesend-server.cpp.
Referenced by ProcessMessage().
|
private |
Is this nDenom and txCollateral acceptable?
Definition at line 698 of file privatesend-server.cpp.
Referenced by AddUserToExistingSession(), and CreateNewSession().
|
private |
Check to make sure a given input matches an input in the pool and its scriptSig is valid.
Definition at line 546 of file privatesend-server.cpp.
Referenced by AddScriptSig().
|
private |
Are these outputs compatible with other client in the pool?
Definition at line 685 of file privatesend-server.cpp.
Referenced by ProcessMessage().
|
inlineprivate |
Do we have enough users to take entries?
Definition at line 50 of file privatesend-server.h.
Referenced by AddUserToExistingSession(), CheckForCompleteQueue(), and ProcessMessage().
|
private |
Check that all inputs are signed. (Are all inputs signed?)
Definition at line 676 of file privatesend-server.cpp.
Referenced by CheckPool().
void CPrivateSendServer::ProcessMessage | ( | CNode * | pfrom, |
std::string & | strCommand, | ||
CDataStream & | vRecv, | ||
CConnman & | connman | ||
) |
Definition at line 18 of file privatesend-server.cpp.
Referenced by ProcessMessage().
|
private |
Definition at line 812 of file privatesend-server.cpp.
Referenced by ProcessMessage().
|
private |
Definition at line 854 of file privatesend-server.cpp.
Referenced by CommitFinalTransaction().
|
private |
Relay mixing Messages.
Definition at line 793 of file privatesend-server.cpp.
Referenced by CreateFinalTransaction().
|
private |
Definition at line 818 of file privatesend-server.cpp.
Referenced by ProcessMessage(), RelayCompletedTransaction(), and RelayFinalTransaction().
|
private |
Definition at line 267 of file privatesend-server.cpp.
Referenced by CheckPool(), CheckTimeout(), CommitFinalTransaction(), CPrivateSendServer(), ProcessMessage(), and RelayStatus().
|
private |
Definition at line 873 of file privatesend-server.cpp.
Referenced by CheckForCompleteQueue(), CheckTimeout(), CreateFinalTransaction(), and CreateNewSession().
|
mutableprivate |
Definition at line 21 of file privatesend-server.h.
Referenced by CheckTimeout(), and ProcessMessage().
|
private |
Definition at line 27 of file privatesend-server.h.
Referenced by CreateNewSession(), and IsAcceptableDenomAndCollateral().
|
private |
Definition at line 25 of file privatesend-server.h.
Referenced by AddUserToExistingSession(), ChargeFees(), ChargeRandomFees(), CreateNewSession(), IsSessionReady(), ProcessMessage(), and SetNull().