[#node-BlockManager-m_snapshot_height]
= xref:node.adoc[node]::xref:node/BlockManager.adoc[BlockManager]::m&lowbar;snapshot&lowbar;height
:relfileprefix: ../../
:mrdocs:

The height of the base block of an assumeutxo snapshot, if one is in use&period;

== Synopsis

Declared in `&lt;node&sol;blockstorage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;int&gt; m&lowbar;snapshot&lowbar;height;
----

== Description

This controls how blockfiles are segmented by chainstate type to avoid comingling different height regions of the chain when an assumedvalid chainstate is in use&period; If heights are drastically different in the same blockfile, pruning suffers&period;

This is set during ActivateSnapshot() or upon LoadBlockIndex() if a snapshot had been previously loaded&period; After the snapshot is validated, this is unset to restore normal LoadBlockIndex behavior&period;


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