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.
Declared in <txmempool.h>
[[requires_capability(0x7ff37b41f5c8), requires_capability(0x7ff376fd6f78), requires_capability(0x7ff38def6198), requires_capability(0x7ff3640f71a8), requires_capability(0x7ff3920f7498), requires_capability(0x7ff37f5c95b8), requires_capability(0x7ff37d010838), requires_capability(0x7ff374c14048)]]
void
check(
CCoinsViewCache const& active_coins_tip,
int64_t spendheight) const;
| Name | Description |
|---|---|
| active_coins_tip | The coins view of the current chain tip. |
| spendheight | The height at which mempool transactions would be spent. |