Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 720 Lines • ▼ Show 20 Lines | public: | ||||
bool TransactionWithinChainLimit(const uint256 &txid, | bool TransactionWithinChainLimit(const uint256 &txid, | ||||
size_t chainLimit) const; | size_t chainLimit) const; | ||||
unsigned long size() { | unsigned long size() { | ||||
LOCK(cs); | LOCK(cs); | ||||
return mapTx.size(); | return mapTx.size(); | ||||
} | } | ||||
uint64_t GetTotalTxSize() { | uint64_t GetTotalTxSize() const { | ||||
LOCK(cs); | LOCK(cs); | ||||
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; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 215 Lines • Show Last 20 Lines |