[#TxRequestTracker-CountCandidates]
= xref:TxRequestTracker.adoc[TxRequestTracker]::CountCandidates
:relfileprefix: ../
:mrdocs:

Count how many CANDIDATE announcements a peer has&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
size&lowbar;t
CountCandidates(xref:NodeId-08.adoc[NodeId] peer) const;
----

== Return Value

Number of CANDIDATE announcements for the peer&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *peer*
| Peer to count announcements for&period;
|===


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