[#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(0x7ff37b902ec8), requires_capability(0x7ff375c49ad8), requires_capability(0x7ff37e054948), requires_capability(0x7ff3759358a8)]] 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]#