[#Chainstate-GetLastFlushedBlock] = xref:Chainstate.adoc[Chainstate]::GetLastFlushedBlock :relfileprefix: ../ :mrdocs: Get the last block that was flushed to disk. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7fb95fa38f68), requires_capability(0x7fb96ac5fec8), requires_capability(0x7fb96e9d66e8), requires_capability(0x7fb98748bd58)]] xref:CBlockIndex.adoc[CBlockIndex] const* GetLastFlushedBlock() const; ---- == Return Value Block index entry of the last block flushed to disk. [.small]#Created with https://www.mrdocs.com[MrDocs]#