5 #ifndef BITCOIN_TXMEMPOOL_H
6 #define BITCOIN_TXMEMPOOL_H
32 int64_t _nTime,
double _dPriority,
unsigned int _nHeight);
37 double GetPriority(
unsigned int currentHeight)
const;
62 std::map<uint256, CTxMemPoolEntry>
mapTx;
77 void remove(
const CTransaction &tx, std::list<CTransaction>& removed,
bool fRecursive =
false);
94 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)
static const unsigned int MEMPOOL_HEIGHT
Fake height value used in CCoins to signify they are only in the memory pool (since 0...
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.