[#ChainstateManager-AddChainstate] = xref:ChainstateManager.adoc[ChainstateManager]::AddChainstate :relfileprefix: ../ :mrdocs: Add new chainstate. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1bc17e38), requires_capability(0x7f2e146b6188), requires_capability(0x7f2e298fb558), requires_capability(0x7f2e360b8cb8)]] xref:Chainstate.adoc[Chainstate]& AddChainstate(std::unique_ptr<Chainstate> chainstate); ---- == Return Value A reference to the added chainstate. == Parameters [cols="1,4"] |=== | Name| Description | *chainstate* | The chainstate to take ownership of and add. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#