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

Get the last block that was flushed to disk&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1ba85278), requires&lowbar;capability(0x7f2e14564ec8), requires&lowbar;capability(0x7f2e373be078), requires&lowbar;capability(0x7f2e36e34cc8)&rsqb;&rsqb;
xref:CBlockIndex.adoc[CBlockIndex] const*
GetLastFlushedBlock() const;
----

== Return Value

Block index entry of the last block flushed to disk&period;


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