Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 597 Lines • ▼ Show 20 Lines | public: | ||||
// addUnchecked must updated state for all ancestors of a given transaction, | // addUnchecked must updated state for all ancestors of a given transaction, | ||||
// to track size/count of descendant transactions. First version of | // to track size/count of descendant transactions. First version of | ||||
// addUnchecked can be used to have it call CalculateMemPoolAncestors(), and | // addUnchecked can be used to have it call CalculateMemPoolAncestors(), and | ||||
// then invoke the second version. | // then invoke the second version. | ||||
// Note that addUnchecked is ONLY called from ATMP outside of tests | // Note that addUnchecked is ONLY called from ATMP outside of tests | ||||
// and any other callers may break wallet's in-mempool tracking (due to | // and any other callers may break wallet's in-mempool tracking (due to | ||||
// lack of CValidationInterface::TransactionAddedToMempool callbacks). | // lack of CValidationInterface::TransactionAddedToMempool callbacks). | ||||
void addUnchecked(const TxId &txid, const CTxMemPoolEntry &entry) | void addUnchecked(const CTxMemPoolEntry &entry) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main); | ||||
void addUnchecked(const TxId &txid, const CTxMemPoolEntry &entry, | void addUnchecked(const CTxMemPoolEntry &entry, setEntries &setAncestors) | ||||
setEntries &setAncestors) | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs, cs_main); | ||||
void removeRecursive( | void removeRecursive( | ||||
const CTransaction &tx, | const CTransaction &tx, | ||||
MemPoolRemovalReason reason = MemPoolRemovalReason::UNKNOWN); | MemPoolRemovalReason reason = MemPoolRemovalReason::UNKNOWN); | ||||
void removeForReorg(const Config &config, const CCoinsViewCache *pcoins, | void removeForReorg(const Config &config, const CCoinsViewCache *pcoins, | ||||
unsigned int nMemPoolHeight, int flags) | unsigned int nMemPoolHeight, int flags) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
▲ Show 20 Lines • Show All 354 Lines • Show Last 20 Lines |