[#HeadersSyncState-2constructor] = xref:HeadersSyncState.adoc[HeadersSyncState]::HeadersSyncState :relfileprefix: ../ :mrdocs: Construct a HeadersSyncState object representing a headers sync via this download‐twice mechanism). == Synopsis Declared in `<headerssync.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- HeadersSyncState( xref:NodeId-08.adoc[NodeId] id, xref:Consensus/Params.adoc[Consensus::Params] const& consensus_params, xref:HeadersSyncParams.adoc[HeadersSyncParams] const& params, xref:CBlockIndex.adoc[CBlockIndex] const& chain_start, xref:arith_uint256.adoc[arith_uint256] const& minimum_required_work); ---- == Description id: node id (for logging) consensus_params: parameters needed for difficulty adjustment validation chain_start: best known fork point that the peer's headers branch from minimum_required_work: amount of chain work required to accept the chain == Parameters [cols="1,4"] |=== | Name| Description | *id* | Node id, used for logging. | *consensus_params* | Parameters needed for difficulty adjustment validation. | *params* | Tuning parameters for the headers sync buffers. | *chain_start* | Best known fork point that the peer's headers branch from. | *minimum_required_work* | Chain work required before accepting the chain. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#