PeerManager::SetBestBlock

Set the height of the best block and its time (seconds since epoch).

Synopsis

Declared in <net_processing.h>

virtual
void
SetBestBlock(
    int height,
    std::chrono::seconds time) = 0;

Parameters

NameDescription
heightThe height of the best block.
timeThe time of the best block, in seconds since the epoch.