[#GetPruneHeight]
= GetPruneHeight
:mrdocs:

Return height of highest block that has been pruned, or std&colon;&colon;nullopt if no blocks have been pruned

== Synopsis

Declared in `&lt;rpc&sol;blockchain&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f950b23c898)&rsqb;&rsqb;
std::optional&lt;int&gt;
GetPruneHeight(
    xref:node/BlockManager.adoc[node::BlockManager] const& blockman,
    xref:CChain.adoc[CChain] const& chain);
----

== Return Value

The height of the highest pruned block, or std&colon;&colon;nullopt if none were pruned&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *blockman*
| The block manager to query&period;
| *chain*
| The active chain to measure against&period;
|===


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