6 #ifndef ANONCOIN_TXMEMPOOL_H
7 #define ANONCOIN_TXMEMPOOL_H
16 static const unsigned int MEMPOOL_HEIGHT = 0x7FFFFFFF;
33 int64_t _nTime,
double _dPriority,
unsigned int _nHeight);
38 double GetPriority(
unsigned int currentHeight)
const;
63 std::map<uint256, CTxMemPoolEntry>
mapTx;
78 void remove(
const CTransaction &tx, std::list<CTransaction>& removed,
bool fRecursive =
false);
95 return (mapTx.count(hash) != 0);
void check(CCoinsViewCache *pcoins) const
bool HaveCoins(const uint256 &txid)
unsigned int GetHeight() const
bool lookup(uint256 hash, CTransaction &result) const
std::map< COutPoint, CInPoint > mapNextTx
CCoinsViewMemPool(CCoinsView &baseIn, CTxMemPool &mempoolIn)
void setSanityCheck(bool _fSanityCheck)
void queryHashes(std::vector< uint256 > &vtxid)
pruned version of CTransaction: only retains metadata and unspent transaction outputs ...
unsigned int GetTransactionsUpdated() const
Abstract view on the open txout dataset.
bool GetCoins(const uint256 &txid, CCoins &coins)
double GetPriority(unsigned int currentHeight) const
std::map< uint256, CTxMemPoolEntry > mapTx
unsigned int nTransactionsUpdated
void AddTransactionsUpdated(unsigned int n)
void removeConflicts(const CTransaction &tx, std::list< CTransaction > &removed)
void pruneSpent(const uint256 &hash, CCoins &coins)
const CTransaction & GetTx() const
bool addUnchecked(const uint256 &hash, const CTxMemPoolEntry &entry)
bool exists(uint256 hash)
The basic transaction that is broadcasted on the network and contained in blocks. ...
CCoinsView backed by another CCoinsView.
CCoinsView that adds a memory cache for transactions to another CCoinsView.
CCoinsView that brings transactions from a memorypool into view.