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

Remove transactions confirmed in a block (and any that conflict with them) from the mempool&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95135d1f30), requires&lowbar;capability(0x7f9501b11310), requires&lowbar;capability(0x7f950ec77500), requires&lowbar;capability(0x7f9525ea7250), requires&lowbar;capability(0x7f9515096990), requires&lowbar;capability(0x7f950826ac30), requires&lowbar;capability(0x7f94f856e340), requires&lowbar;capability(0x7f9513c58530)&rsqb;&rsqb;
std::vector&lt;RemovedMempoolTransactionInfo&gt;
removeForBlock(std::vector&lt;CTransactionRef&gt; const& vtx);
----

== Return Value

Information about the transactions removed from the mempool&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *vtx*
| The transactions included in the newly connected block&period;
|===


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