Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 693 Lines • ▼ Show 20 Lines | uint64_t GetTotalTxSize() const { | ||||
return totalTxSize; | return totalTxSize; | ||||
} | } | ||||
bool exists(uint256 hash) const { | bool exists(uint256 hash) const { | ||||
LOCK(cs); | LOCK(cs); | ||||
return mapTx.count(hash) != 0; | return mapTx.count(hash) != 0; | ||||
} | } | ||||
bool exists(const COutPoint &outpoint) const { | |||||
LOCK(cs); | |||||
auto it = mapTx.find(outpoint.GetTxId()); | |||||
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() const; | CFeeRate estimateFee() const; | ||||
size_t DynamicMemoryUsage() const; | size_t DynamicMemoryUsage() const; | ||||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |