Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 650 Lines • ▼ Show 20 Lines | public: | ||||
* to 0. When the feerate would otherwise be half of this, it is set to 0 | * to 0. When the feerate would otherwise be half of this, it is set to 0 | ||||
* instead. | * instead. | ||||
*/ | */ | ||||
CFeeRate GetMinFee(size_t sizelimit) const; | CFeeRate GetMinFee(size_t sizelimit) const; | ||||
/** | /** | ||||
* Remove transactions from the mempool until its dynamic size is <= | * Remove transactions from the mempool until its dynamic size is <= | ||||
* sizelimit. pvNoSpendsRemaining, if set, will be populated with the list | * sizelimit. pvNoSpendsRemaining, if set, will be populated with the list | ||||
* of transactions which are not in mempool which no longer have any spends | * of outpoints which are not in mempool which no longer have any spends in | ||||
* in this mempool. | * this mempool. | ||||
*/ | */ | ||||
void TrimToSize(size_t sizelimit, | void TrimToSize(size_t sizelimit, | ||||
std::vector<uint256> *pvNoSpendsRemaining = nullptr); | std::vector<COutPoint> *pvNoSpendsRemaining = nullptr); | ||||
/** Expire all transaction (and their dependencies) in the mempool older | /** Expire all transaction (and their dependencies) in the mempool older | ||||
* than time. Return the number of removed transactions. */ | * than time. Return the number of removed transactions. */ | ||||
int Expire(int64_t time); | int Expire(int64_t time); | ||||
/** Returns false if the transaction is in the mempool and not within the | /** Returns false if the transaction is in the mempool and not within the | ||||
* chain limit specified. */ | * chain limit specified. */ | ||||
bool TransactionWithinChainLimit(const uint256 &txid, | bool TransactionWithinChainLimit(const uint256 &txid, | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |