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

Instantiate a new chainstate&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1bc16d78), requires&lowbar;capability(0x7f2e146b50c8), requires&lowbar;capability(0x7f2e298fa498), requires&lowbar;capability(0x7f2e360b7bf8)&rsqb;&rsqb;
xref:Chainstate.adoc[Chainstate]&
InitializeChainstate(xref:CTxMemPool.adoc[CTxMemPool]* mempool);
----

== Return Value

A reference to the newly initialized chainstate&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mempool*
| The mempool to pass to the chainstate constructor&period;
|===


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