![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
#include <txmempool.h>
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, CTxMemPoolEntry > | mapTx |
std::map< COutPoint, CInPoint > | mapNextTx |
Private Attributes | |
bool | fSanityCheck |
unsigned int | nTransactionsUpdated |
Definition at line 55 of file txmempool.h.
CTxMemPool::CTxMemPool | ( | ) |
Definition at line 39 of file txmempool.cpp.
void CTxMemPool::AddTransactionsUpdated | ( | unsigned int | n | ) |
bool CTxMemPool::addUnchecked | ( | const uint256 & | hash, |
const CTxMemPoolEntry & | entry | ||
) |
void CTxMemPool::check | ( | CCoinsViewCache * | pcoins | ) | const |
void CTxMemPool::clear | ( | ) |
Definition at line 132 of file txmempool.cpp.
|
inline |
unsigned int CTxMemPool::GetTransactionsUpdated | ( | ) | const |
bool CTxMemPool::lookup | ( | uint256 | hash, |
CTransaction & | result | ||
) | const |
Definition at line 47 of file txmempool.cpp.
void CTxMemPool::queryHashes | ( | std::vector< uint256 > & | vtxid | ) |
void CTxMemPool::remove | ( | const CTransaction & | tx, |
std::list< CTransaction > & | removed, | ||
bool | fRecursive = false |
||
) |
void CTxMemPool::removeConflicts | ( | const CTransaction & | tx, |
std::list< CTransaction > & | removed | ||
) |
Definition at line 115 of file txmempool.cpp.
|
inline |
|
inline |
|
mutable |
Definition at line 62 of file txmempool.h.
|
private |
Definition at line 58 of file txmempool.h.
Definition at line 64 of file txmempool.h.
std::map<uint256, CTxMemPoolEntry> CTxMemPool::mapTx |
Definition at line 63 of file txmempool.h.
|
private |
Definition at line 59 of file txmempool.h.