[#Chainstate-GetPruneRange]
= xref:Chainstate.adoc[Chainstate]::GetPruneRange
:relfileprefix: ../
:mrdocs:

Return the inclusive[start, end] of block heights we can prune&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1ba85430), requires&lowbar;capability(0x7f2e14565080), requires&lowbar;capability(0x7f2e373be230), requires&lowbar;capability(0x7f2e36e34e80)&rsqb;&rsqb;
std::pair&lt;int, int&gt;
GetPruneRange(int last&lowbar;height&lowbar;can&lowbar;prune) const;
----

== Description

start &gt; end is possible, meaning no blocks can be pruned&period;

== Return Value

The inclusive &lsqb;start, end&rsqb;range of prunable block heights&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *last&lowbar;height&lowbar;can&lowbar;prune*
| Highest block height eligible for pruning&period;
|===


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