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

Returns all mempool entries in the same cluster as the given transaction&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1b5a2bd8), requires&lowbar;capability(0x7f2e2721bbe8), requires&lowbar;capability(0x7f2e421cd2f8), requires&lowbar;capability(0x7f2e2880c2b8), requires&lowbar;capability(0x7f2e3212f648), requires&lowbar;capability(0x7f2e347f7cd8), requires&lowbar;capability(0x7f2e2b05c148), requires&lowbar;capability(0x7f2e2bee37e8)&rsqb;&rsqb;
std::vector&lt;CTxMemPoolEntry const*&gt;
GetCluster(xref:Txid.adoc[Txid] txid) const;
----

== Return Value

The cluster&apos;s entries, or an empty vector if the txid is not in the mempool&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *txid*
| The txid whose cluster is collected&period;
|===


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