[#BaseIndex-ChainStateFlushed]
= xref:BaseIndex.adoc[BaseIndex]::ChainStateFlushed
:relfileprefix: ../
:mrdocs:

Handle a chainstate flush by committing the index up to the flushed point&period;

== Synopsis

Declared in `&lt;index&sol;base&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
ChainStateFlushed(
    xref:kernel/ChainstateRole.adoc[kernel::ChainstateRole] const& role,
    xref:CBlockLocator.adoc[CBlockLocator] const& locator) override;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *role*
| Role of the chainstate that was flushed&period;
| *locator*
| Block locator marking how far the chainstate has flushed&period;
|===


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