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

Add new chainstate&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1bc17e38), requires&lowbar;capability(0x7f2e146b6188), requires&lowbar;capability(0x7f2e298fb558), requires&lowbar;capability(0x7f2e360b8cb8)&rsqb;&rsqb;
xref:Chainstate.adoc[Chainstate]&
AddChainstate(std::unique&lowbar;ptr&lt;Chainstate&gt; chainstate);
----

== Return Value

A reference to the added chainstate&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chainstate*
| The chainstate to take ownership of and add&period;
|===


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