[#ChainstateManager-ActiveChainstate]
= xref:ChainstateManager.adoc[ChainstateManager]::ActiveChainstate
:relfileprefix: ../
:mrdocs:

Alternatives to CurrentChainstate() used by older code to query latest chainstate information without locking cs&lowbar;main&period; Newer code should avoid querying ChainstateManager and use Chainstate objects directly, or should use CurrentChainstate() instead&period; @&lcub; Return the active chainstate&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:Chainstate.adoc[Chainstate]&
ActiveChainstate() const;
----

== Return Value

A reference to the active chainstate&period;


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