[#Chainstate-GetRole]
= xref:Chainstate.adoc[Chainstate]::GetRole
:relfileprefix: ../
:mrdocs:

Return the current role of the chainstate&period; See `ChainstateManager` documentation for a description of the different types of chainstates&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1ba83658), requires&lowbar;capability(0x7f2e145632a8), requires&lowbar;capability(0x7f2e373bc458), requires&lowbar;capability(0x7f2e36e330a8)&rsqb;&rsqb;
xref:kernel/ChainstateRole.adoc[kernel::ChainstateRole]
GetRole() const;
----

== Return Value

The current role of this chainstate&period;


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