Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 737 Lines • ▼ Show 20 Lines | bool exists(const COutPoint &outpoint) const { | ||||
auto it = mapTx.find(outpoint.GetTxId()); | auto it = mapTx.find(outpoint.GetTxId()); | ||||
return it != mapTx.end() && outpoint.GetN() < it->GetTx().vout.size(); | return it != mapTx.end() && outpoint.GetN() < it->GetTx().vout.size(); | ||||
} | } | ||||
CTransactionRef get(const uint256 &hash) const; | CTransactionRef get(const uint256 &hash) const; | ||||
TxMempoolInfo info(const uint256 &hash) const; | TxMempoolInfo info(const uint256 &hash) const; | ||||
std::vector<TxMempoolInfo> infoAll() const; | std::vector<TxMempoolInfo> infoAll() const; | ||||
CFeeRate estimateFee(int nBlocks) const; | CFeeRate estimateFee() const; | ||||
size_t DynamicMemoryUsage() const; | size_t DynamicMemoryUsage() const; | ||||
boost::signals2::signal<void(CTransactionRef)> NotifyEntryAdded; | boost::signals2::signal<void(CTransactionRef)> NotifyEntryAdded; | ||||
boost::signals2::signal<void(CTransactionRef, MemPoolRemovalReason)> | boost::signals2::signal<void(CTransactionRef, MemPoolRemovalReason)> | ||||
NotifyEntryRemoved; | NotifyEntryRemoved; | ||||
private: | private: | ||||
▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines |