[#HeadersSyncState-State]
= xref:HeadersSyncState.adoc[HeadersSyncState]::State
:relfileprefix: ../
:mrdocs:

Phase of the download&hyphen;twice headers synchronization&period;

== Synopsis

Declared in `&lt;headerssync&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class State : int;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `PRESYNC` 
| PRESYNC means the peer has not yet demonstrated their chain has sufficient work and we&apos;re only building commitments to the chain they serve us&period;
| `REDOWNLOAD` 
| REDOWNLOAD means the peer has given us a high&hyphen;enough&hyphen;work chain, and now we&apos;re redownloading the headers we saw before and trying to accept them
| `FINAL` 
| We&apos;re done syncing with this peer and can discard any remaining state
|===



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