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

Call ActivateBestChain() on every chainstate&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;locks&lowbar;excluded(0x7f2e1bc18218), locks&lowbar;excluded(0x7f2e146b6568), locks&lowbar;excluded(0x7f2e298fb938), locks&lowbar;excluded(0x7f2e360b9098)&rsqb;&rsqb;
xref:util/Result.adoc[util::Result&lt;void&gt;]
ActivateBestChains();
----

== Return Value

A successful result, or an error if activation failed on any chainstate&period;


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