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

Set the height of the best block and its time (seconds since epoch)&period;

== Synopsis

Declared in `&lt;net&lowbar;processing&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
SetBestBlock(
    int height,
    std::chrono::seconds time) = 0;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *height*
| The height of the best block&period;
| *time*
| The time of the best block, in seconds since the epoch&period;
|===


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