CTxMemPool::check

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 are in the mapNextTx array). If sanity-checking is turned off, check does nothing.

Synopsis

Declared in <txmempool.h>

[[requires_capability(0x7f95135d1cc8), requires_capability(0x7f9501b110a8), requires_capability(0x7f950ec77298), requires_capability(0x7f9525ea6fe8), requires_capability(0x7f9515096728), requires_capability(0x7f950826a9c8), requires_capability(0x7f94f856e0d8), requires_capability(0x7f9513c582c8)]]
void
check(
    CCoinsViewCache const& active_coins_tip,
    int64_t spendheight) const;

Parameters

NameDescription
active_coins_tipThe coins view of the current chain tip.
spendheightThe height at which mempool transactions would be spent.