Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 702 Lines • ▼ Show 20 Lines | public: | ||||
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 { | bool exists(const COutPoint &outpoint) const { | ||||
LOCK(cs); | LOCK(cs); | ||||
auto it = mapTx.find(outpoint.hash); | auto it = mapTx.find(outpoint.GetTxId()); | ||||
return it != mapTx.end() && outpoint.n < 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; | ||||
/** | /** | ||||
* Estimate fee rate needed to get into the next nBlocks. If no answer can | * Estimate fee rate needed to get into the next nBlocks. If no answer can | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |