Anoncoin  0.9.4
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | List of all members
CTxMemPool Class Reference

#include <txmempool.h>

Collaboration diagram for CTxMemPool:
[legend]

Public Member Functions

 CTxMemPool ()
 
void check (CCoinsViewCache *pcoins) const
 
void setSanityCheck (bool _fSanityCheck)
 
bool addUnchecked (const uint256 &hash, const CTxMemPoolEntry &entry)
 
void remove (const CTransaction &tx, std::list< CTransaction > &removed, bool fRecursive=false)
 
void removeConflicts (const CTransaction &tx, std::list< CTransaction > &removed)
 
void clear ()
 
void queryHashes (std::vector< uint256 > &vtxid)
 
void pruneSpent (const uint256 &hash, CCoins &coins)
 
unsigned int GetTransactionsUpdated () const
 
void AddTransactionsUpdated (unsigned int n)
 
unsigned long size ()
 
bool exists (uint256 hash)
 
bool lookup (uint256 hash, CTransaction &result) const
 

Public Attributes

CCriticalSection cs
 
std::map< uint256, CTxMemPoolEntrymapTx
 
std::map< COutPoint, CInPointmapNextTx
 

Private Attributes

bool fSanityCheck
 
unsigned int nTransactionsUpdated
 

Detailed Description

Definition at line 55 of file txmempool.h.

Constructor & Destructor Documentation

CTxMemPool::CTxMemPool ( )

Definition at line 39 of file txmempool.cpp.

Member Function Documentation

void CTxMemPool::AddTransactionsUpdated ( unsigned int  n)

Definition at line 66 of file txmempool.cpp.

Here is the caller graph for this function:

bool CTxMemPool::addUnchecked ( const uint256 hash,
const CTxMemPoolEntry entry 
)

Definition at line 73 of file txmempool.cpp.

Here is the caller graph for this function:

void CTxMemPool::check ( CCoinsViewCache pcoins) const

Definition at line 140 of file txmempool.cpp.

Here is the call graph for this function:

void CTxMemPool::clear ( )

Definition at line 132 of file txmempool.cpp.

bool CTxMemPool::exists ( uint256  hash)
inline

Definition at line 92 of file txmempool.h.

Here is the caller graph for this function:

unsigned int CTxMemPool::GetTransactionsUpdated ( ) const

Definition at line 60 of file txmempool.cpp.

Here is the caller graph for this function:

bool CTxMemPool::lookup ( uint256  hash,
CTransaction result 
) const

Definition at line 190 of file txmempool.cpp.

Here is the caller graph for this function:

void CTxMemPool::pruneSpent ( const uint256 hash,
CCoins coins 
)

Definition at line 47 of file txmempool.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CTxMemPool::queryHashes ( std::vector< uint256 > &  vtxid)

Definition at line 180 of file txmempool.cpp.

Here is the caller graph for this function:

void CTxMemPool::remove ( const CTransaction tx,
std::list< CTransaction > &  removed,
bool  fRecursive = false 
)

Definition at line 90 of file txmempool.cpp.

Here is the call graph for this function:

void CTxMemPool::removeConflicts ( const CTransaction tx,
std::list< CTransaction > &  removed 
)

Definition at line 115 of file txmempool.cpp.

void CTxMemPool::setSanityCheck ( bool  _fSanityCheck)
inline

Definition at line 75 of file txmempool.h.

Here is the caller graph for this function:

unsigned long CTxMemPool::size ( )
inline

Definition at line 86 of file txmempool.h.

Here is the caller graph for this function:

Member Data Documentation

CCriticalSection CTxMemPool::cs
mutable

Definition at line 62 of file txmempool.h.

bool CTxMemPool::fSanityCheck
private

Definition at line 58 of file txmempool.h.

std::map<COutPoint, CInPoint> CTxMemPool::mapNextTx

Definition at line 64 of file txmempool.h.

std::map<uint256, CTxMemPoolEntry> CTxMemPool::mapTx

Definition at line 63 of file txmempool.h.

unsigned int CTxMemPool::nTransactionsUpdated
private

Definition at line 59 of file txmempool.h.


The documentation for this class was generated from the following files: