Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 632 Lines • ▼ Show 20 Lines | public: | ||||
~CTxMemPool(); | ~CTxMemPool(); | ||||
/** | /** | ||||
* If sanity-checking is turned on, check makes sure the pool is consistent | * If sanity-checking is turned on, check makes sure the pool is consistent | ||||
* (does not contain two transactions that spend the same inputs, all inputs | * (does not contain two transactions that spend the same inputs, all inputs | ||||
* are in the mapNextTx array). If sanity-checking is turned off, check does | * are in the mapNextTx array). If sanity-checking is turned off, check does | ||||
* nothing. | * nothing. | ||||
*/ | */ | ||||
void check(CChainState &active_chainstate) const | void check(const CCoinsViewCache &active_coins_tip, | ||||
EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | int64_t spendheight) const EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | ||||
// 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). | ||||
▲ Show 20 Lines • Show All 470 Lines • Show Last 20 Lines |