[#btck-KernelNotifications-HeaderTipHandler]
= xref:btck.adoc[btck]::xref:btck/KernelNotifications.adoc[KernelNotifications]::HeaderTipHandler
:relfileprefix: ../../
:mrdocs:

Called when the best header advances&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
HeaderTipHandler(
    xref:btck/SynchronizationState.adoc[SynchronizationState] state,
    int64&lowbar;t height,
    int64&lowbar;t timestamp,
    bool presync);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *state*
| The current synchronization state&period;
| *height*
| The new header height&period;
| *timestamp*
| The new header&apos;s timestamp&period;
| *presync*
| True while still presyncing headers&period;
|===


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