PeerManager::UpdateLastBlockAnnounceTime

This function is used for testing the stale tip eviction logic, see denialofservice_tests.cpp

Synopsis

Declared in <net_processing.h>

virtual
void
UpdateLastBlockAnnounceTime(
    NodeId node,
    int64_t time_in_seconds) = 0;

Parameters

NameDescription
nodeThe id of the peer whose last block announcement time is updated.
time_in_secondsThe announcement time to record, in seconds since the epoch.