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

Ensures a genesis block is in the block tree, possibly writing one to disk&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
bool
LoadGenesisBlock();
----

== Return Value

true if the genesis block is present after the call&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

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