Construct a HeadersSyncState object representing a headers sync via this download-twice mechanism).
Declared in <headerssync.h>
HeadersSyncState(
NodeId id,
Consensus::Params const& consensus_params,
HeadersSyncParams const& params,
CBlockIndex const& chain_start,
arith_uint256 const& minimum_required_work);
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
| 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. |