[#ChainstateManager-ActiveChainstate] = xref:ChainstateManager.adoc[ChainstateManager]::ActiveChainstate :relfileprefix: ../ :mrdocs: Alternatives to CurrentChainstate() used by older code to query latest chainstate information without locking cs_main. Newer code should avoid querying ChainstateManager and use Chainstate objects directly, or should use CurrentChainstate() instead. @{ Return the active chainstate. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:Chainstate.adoc[Chainstate]& ActiveChainstate() const; ---- == Return Value A reference to the active chainstate. [.small]#Created with https://www.mrdocs.com[MrDocs]#