[#CTxMemPool-check] = xref:CTxMemPool.adoc[CTxMemPool]::check :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1b5a1bf8), requires_capability(0x7f2e2721ac08), requires_capability(0x7f2e421cc318), requires_capability(0x7f2e2880b2d8), requires_capability(0x7f2e3212e668), requires_capability(0x7f2e347f6cf8), requires_capability(0x7f2e2b05b168), requires_capability(0x7f2e2bee2808)]] void check( xref:CCoinsViewCache.adoc[CCoinsViewCache] const& active_coins_tip, int64_t spendheight) const; ---- == Parameters [cols="1,4"] |=== | Name| Description | *active_coins_tip* | The coins view of the current chain tip. | *spendheight* | The height at which mempool transactions would be spent. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#