[#CCoinsViewCache-SetBestBlock]
= xref:CCoinsViewCache.adoc[CCoinsViewCache]::SetBestBlock
:relfileprefix: ../
:mrdocs:

Set the best block hash this cache represents&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SetBestBlock(xref:uint256.adoc[uint256] const& block&lowbar;hash);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block&lowbar;hash*
| New best block hash&period;
|===


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