5 #ifndef PRIVATESENDSERVER_H 6 #define PRIVATESENDSERVER_H std::vector< CTransaction > vecSessionCollaterals
void CommitFinalTransaction(CConnman &connman)
bool AddEntry(const CDarkSendEntry &entryNew, PoolMessage &nMessageIDRet)
Add a clients entry to the pool.
bool IsSessionReady()
Do we have enough users to take entries?
void CreateFinalTransaction(CConnman &connman)
bool IsOutputsCompatibleWithSessionDenom(const std::vector< CTxDSOut > &vecTxDSOut)
Are these outputs compatible with other client in the pool?
CCriticalSection cs_darksend
void CheckForCompleteQueue(CConnman &connman)
void ThreadCheckPrivateSendServer(CConnman &connman)
bool AddScriptSig(const CTxIn &txin)
Add signature to a txin.
void SetState(PoolState nStateNew)
bool AddUserToExistingSession(int nDenom, CTransaction txCollateral, PoolMessage &nMessageIDRet)
void CheckPool(CConnman &connman)
Check for process.
void CheckTimeout(CConnman &connman)
bool IsInputScriptSigValid(const CTxIn &txin)
Check to make sure a given input matches an input in the pool and its scriptSig is valid...
bool CreateNewSession(int nDenom, CTransaction txCollateral, PoolMessage &nMessageIDRet, CConnman &connman)
bool IsAcceptableDenomAndCollateral(int nDenom, CTransaction txCollateral, PoolMessage &nMessageIDRet)
Is this nDenom and txCollateral acceptable?
static int GetMaxPoolTransactions()
Get the maximum number of transactions for the pool.
void PushStatus(CNode *pnode, PoolStatusUpdate nStatusUpdate, PoolMessage nMessageID, CConnman &connman)
bool IsSignaturesComplete()
Check that all inputs are signed. (Are all inputs signed?)
void ProcessMessage(CNode *pfrom, std::string &strCommand, CDataStream &vRecv, CConnman &connman)
void RelayCompletedTransaction(PoolMessage nMessageID, CConnman &connman)
void ChargeRandomFees(CConnman &connman)
Rarely charge fees to pay miners.
void RelayStatus(PoolStatusUpdate nStatusUpdate, CConnman &connman, PoolMessage nMessageID=MSG_NOERR)
CPrivateSendServer privateSendServer
void ChargeFees(CConnman &connman)
Charge fees to bad actors (Charge clients a fee if they're abusive)
void RelayFinalTransaction(const CTransaction &txFinal, CConnman &connman)
Relay mixing Messages.