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

Get range of historical blocks to download&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f9513c484a8), requires&lowbar;capability(0x7f9502de9c48), requires&lowbar;capability(0x7f950b21c418), requires&lowbar;capability(0x7f9514bf6408)&rsqb;&rsqb;
std::optional&lt;std::pair&lt;CBlockIndex const*, CBlockIndex const*&gt;&gt;
GetHistoricalBlockRange() const;
----

== Return Value

The &lsqb;first, last&rsqb;range of historical blocks to download, or std&colon;&colon;nullopt if none&period;


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