Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 730 Lines • ▼ Show 20 Lines | public: | ||||
* time. Return the number of removed transactions. | * time. Return the number of removed transactions. | ||||
*/ | */ | ||||
int Expire(std::chrono::seconds time) EXCLUSIVE_LOCKS_REQUIRED(cs); | int Expire(std::chrono::seconds time) EXCLUSIVE_LOCKS_REQUIRED(cs); | ||||
/** | /** | ||||
* Reduce the size of the mempool by expiring and then trimming the mempool. | * Reduce the size of the mempool by expiring and then trimming the mempool. | ||||
*/ | */ | ||||
void LimitSize(size_t limit, std::chrono::seconds age) | void LimitSize(size_t limit, std::chrono::seconds age) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs); | EXCLUSIVE_LOCKS_REQUIRED(cs, ::cs_main); | ||||
/** | /** | ||||
* Calculate the ancestor and descendant count for the given transaction. | * Calculate the ancestor and descendant count for the given transaction. | ||||
* The counts include the transaction itself. | * The counts include the transaction itself. | ||||
*/ | */ | ||||
void GetTransactionAncestry(const TxId &txid, size_t &ancestors, | void GetTransactionAncestry(const TxId &txid, size_t &ancestors, | ||||
size_t &descendants) const; | size_t &descendants) const; | ||||
▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines |