[#PeerManager-SetBestBlock] = xref:PeerManager.adoc[PeerManager]::SetBestBlock :relfileprefix: ../ :mrdocs: Set the height of the best block and its time (seconds since epoch). == Synopsis Declared in `<net_processing.h>` [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. | *time* | The time of the best block, in seconds since the epoch. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#