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

This function is used for testing the stale tip eviction logic, see denialofservice&lowbar;tests&period;cpp

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
UpdateLastBlockAnnounceTime(
    xref:NodeId-08.adoc[NodeId] node,
    int64&lowbar;t time&lowbar;in&lowbar;seconds) = 0;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *node*
| The id of the peer whose last block announcement time is updated&period;
| *time&lowbar;in&lowbar;seconds*
| The announcement time to record, in seconds since the epoch&period;
|===


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