[#PeerManager-GetNodeStateStats]
= xref:PeerManager.adoc[PeerManager]::GetNodeStateStats
:relfileprefix: ../
:mrdocs:

Get statistics from node state

== Synopsis

Declared in `&lt;net&lowbar;processing&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
GetNodeStateStats(
    xref:NodeId-08.adoc[NodeId] nodeid,
    xref:CNodeStateStats.adoc[CNodeStateStats]& stats) const = 0;
----

== Return Value

True if the peer was found and stats were populated&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nodeid*
| The id of the peer to query&period;
| *stats*
| Output filled with the peer&apos;s state statistics on success&period;
|===


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