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

Update the internal best block index as well as the prune lock&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SetBestBlockIndex(xref:CBlockIndex.adoc[CBlockIndex] const* block);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block*
| Block index entry to record as the new best block&period;
|===


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