Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 593 Lines • ▼ Show 20 Lines | private: | ||||
GetSortedDepthAndScore() const EXCLUSIVE_LOCKS_REQUIRED(cs); | GetSortedDepthAndScore() const EXCLUSIVE_LOCKS_REQUIRED(cs); | ||||
/** | /** | ||||
* Track locally submitted transactions to periodically retry initial | * Track locally submitted transactions to periodically retry initial | ||||
* broadcast | * broadcast | ||||
*/ | */ | ||||
std::set<TxId> m_unbroadcast_txids GUARDED_BY(cs); | std::set<TxId> m_unbroadcast_txids GUARDED_BY(cs); | ||||
/** | |||||
* Helper function to populate setAncestors with all the ancestors of entry | |||||
* and apply ancestor and descendant limits. | |||||
* param@[out] setAncestors Will be populated with all mempool | |||||
* ancestors of entry. | |||||
* param@[in] staged_ancestors Should contain mempool parents of entry. | |||||
*/ | |||||
bool CalculateAncestorsAndCheckLimits( | |||||
const CTxMemPoolEntry &entry, setEntries &setAncestors, | |||||
CTxMemPoolEntry::Parents &staged_ancestors, uint64_t limitAncestorCount, | |||||
uint64_t limitAncestorSize, uint64_t limitDescendantCount, | |||||
uint64_t limitDescendantSize, std::string &errString) const | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs); | |||||
public: | public: | ||||
indirectmap<COutPoint, const CTransaction *> mapNextTx GUARDED_BY(cs); | indirectmap<COutPoint, const CTransaction *> mapNextTx GUARDED_BY(cs); | ||||
std::map<TxId, Amount> mapDeltas GUARDED_BY(cs); | std::map<TxId, Amount> mapDeltas GUARDED_BY(cs); | ||||
/** | /** | ||||
* Create a new CTxMemPool. | * Create a new CTxMemPool. | ||||
* Sanity checks will be off by default for performance, because otherwise | * Sanity checks will be off by default for performance, because otherwise | ||||
* accepting transactions becomes O(N^2) where N is the number of | * accepting transactions becomes O(N^2) where N is the number of | ||||
▲ Show 20 Lines • Show All 467 Lines • Show Last 20 Lines |