Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 659 Lines • ▼ Show 20 Lines | public: | ||||
/** Affect CreateNewBlock prioritisation of transactions */ | /** Affect CreateNewBlock prioritisation of transactions */ | ||||
void PrioritiseTransaction(const TxId &txid, double dPriorityDelta, | void PrioritiseTransaction(const TxId &txid, double dPriorityDelta, | ||||
const Amount nFeeDelta); | const Amount nFeeDelta); | ||||
void ApplyDeltas(const TxId &txid, double &dPriorityDelta, | void ApplyDeltas(const TxId &txid, double &dPriorityDelta, | ||||
Amount &nFeeDelta) const; | Amount &nFeeDelta) const; | ||||
void ClearPrioritisation(const TxId &txid); | void ClearPrioritisation(const TxId &txid); | ||||
public: | /** Get the transaction in the pool that spends the same prevout */ | ||||
const CTransaction *GetConflictTx(const COutPoint &prevout) const | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs); | |||||
/** Returns an iterator to the given txid, if found */ | |||||
boost::optional<txiter> GetIter(const TxId &txid) const | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs); | |||||
/** | |||||
* Translate a set of txids into a set of pool iterators to avoid repeated | |||||
* lookups. | |||||
*/ | |||||
setEntries GetIterSet(const std::set<TxId> &txids) const | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs); | |||||
/** | /** | ||||
* Remove a set of transactions from the mempool. If a transaction is in | * Remove a set of transactions from the mempool. If a transaction is in | ||||
* this set, then all in-mempool descendants must also be in the set, unless | * this set, then all in-mempool descendants must also be in the set, unless | ||||
* this transaction is being removed for being in a block. Set | * this transaction is being removed for being in a block. Set | ||||
* updateDescendants to true when removing a tx that was in a block, so that | * updateDescendants to true when removing a tx that was in a block, so that | ||||
* any in-mempool descendants have their ancestor state updated. | * any in-mempool descendants have their ancestor state updated. | ||||
*/ | */ | ||||
void | void | ||||
▲ Show 20 Lines • Show All 320 Lines • Show Last 20 Lines |