Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
FuzzedHeadersSyncState Class Reference
Inheritance diagram for FuzzedHeadersSyncState:
[legend]
Collaboration diagram for FuzzedHeadersSyncState:
[legend]

Public Member Functions

 FuzzedHeadersSyncState (const HeadersSyncParams &sync_params, const size_t commit_offset, const CBlockIndex &chain_start, const arith_uint256 &minimum_required_work)
Public Member Functions inherited from HeadersSyncState
 ~HeadersSyncState ()=default
State GetState () const
 Return the current state of our download.
int64_t GetPresyncHeight () const
 Return the height reached during the PRESYNC phase.
uint32_t GetPresyncTime () const
 Return the block timestamp of the last header received during the PRESYNC phase.
arith_uint256 GetPresyncWork () const
 Return the amount of work in the chain received during the PRESYNC phase.
 HeadersSyncState (NodeId id, const Consensus::Params &consensus_params, const HeadersSyncParams &params, const CBlockIndex &chain_start, const arith_uint256 &minimum_required_work)
 Construct a HeadersSyncState object representing a headers sync via this download-twice mechanism).
ProcessingResult ProcessNextHeaders (std::span< const CBlockHeader > received_headers, bool full_headers_message)
 Process a batch of headers, once a sync via this mechanism has started.
CBlockLocator NextHeadersRequestLocator () const
 Issue the next GETHEADERS message to our peer.

Additional Inherited Members

Public Types inherited from HeadersSyncState
enum class  State { PRESYNC , REDOWNLOAD , FINAL }
Protected Attributes inherited from HeadersSyncState
const size_t m_commit_offset
 The (secret) offset on the heights for which to create commitments.

Detailed Description

Definition at line 43 of file headerssync.cpp.

Constructor & Destructor Documentation

◆ FuzzedHeadersSyncState()

FuzzedHeadersSyncState::FuzzedHeadersSyncState ( const HeadersSyncParams & sync_params,
const size_t commit_offset,
const CBlockIndex & chain_start,
const arith_uint256 & minimum_required_work )
inline

Definition at line 46 of file headerssync.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following file: