[#CTxMemPool-check]
= xref:CTxMemPool.adoc[CTxMemPool]::check
:relfileprefix: ../
:mrdocs:

If sanity&hyphen;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)&period; If sanity&hyphen;checking is turned off, check does nothing&period;

== Synopsis

Declared in `&lt;txmempool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95135d1cc8), requires&lowbar;capability(0x7f9501b110a8), requires&lowbar;capability(0x7f950ec77298), requires&lowbar;capability(0x7f9525ea6fe8), requires&lowbar;capability(0x7f9515096728), requires&lowbar;capability(0x7f950826a9c8), requires&lowbar;capability(0x7f94f856e0d8), requires&lowbar;capability(0x7f9513c582c8)&rsqb;&rsqb;
void
check(
    xref:CCoinsViewCache.adoc[CCoinsViewCache] const& active&lowbar;coins&lowbar;tip,
    int64&lowbar;t spendheight) const;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *active&lowbar;coins&lowbar;tip*
| The coins view of the current chain tip&period;
| *spendheight*
| The height at which mempool transactions would be spent&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
